From 9985dd934d56a8e614361c9634f86afddb129554 Mon Sep 17 00:00:00 2001 From: HalidOdat Date: Wed, 1 Apr 2020 15:39:39 +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 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.