diff --git a/boa/src/syntax/ast/op.rs b/boa/src/syntax/ast/op.rs index f10b25ecdb..5e59717634 100644 --- a/boa/src/syntax/ast/op.rs +++ b/boa/src/syntax/ast/op.rs @@ -258,7 +258,7 @@ pub enum UnaryOp { /// The JavaScript `delete` operator removes a property from an object. /// - /// Syntax: `delete expression` + /// Syntax: `delete x` /// /// Unlike what common belief suggests, the delete operator has nothing to do with /// directly freeing memory. Memory management is done indirectly via breaking references.