diff --git a/boa/src/syntax/ast/op.rs b/boa/src/syntax/ast/op.rs index 15a3c8f15b..f10b25ecdb 100644 --- a/boa/src/syntax/ast/op.rs +++ b/boa/src/syntax/ast/op.rs @@ -243,7 +243,7 @@ pub enum UnaryOp { /// The `typeof` operator returns a string indicating the type of the unevaluated operand. /// - /// Syntax: `typeof expression` or `typeof(expression)` + /// Syntax: `typeof x` or `typeof(x)` /// /// The `typeof` is a JavaScript keyword that will return the type of a variable when you call it. /// You can use this to validate function parameters or check if variables are defined.