From 487a719aa8aac69f979c9d618565d2a4a60a4d7a Mon Sep 17 00:00:00 2001 From: HalidOdat Date: Wed, 1 Apr 2020 15:40:01 +0200 Subject: [PATCH] Update boa/src/syntax/ast/op.rs Co-Authored-By: Iban Eguia --- boa/src/syntax/ast/op.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boa/src/syntax/ast/op.rs b/boa/src/syntax/ast/op.rs index 5e59717634..1fbaa0614f 100644 --- a/boa/src/syntax/ast/op.rs +++ b/boa/src/syntax/ast/op.rs @@ -278,7 +278,7 @@ pub enum UnaryOp { /// The `void` operator evaluates the given `expression` and then returns `undefined`. /// - /// Syntax: `void expression` + /// Syntax: `void x` /// /// This operator allows evaluating expressions that produce a value into places where an /// expression that evaluates to `undefined` is desired.