Skip to content

Commit 97f7f92

Browse files
committed
Update The-Expression-Syntax.md
1 parent 2c6cb0e commit 97f7f92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/The-Expression-Syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ life < universe or life < everything
9494
To test if a string does *not* match a regex, use the logical `not` operator in combination with the `matches` operator:
9595

9696
```coffeescript
97-
not ("foo" matches "^bar")
97+
not ("foo" matches "^b.+")
9898
```
9999

100100
You must use parenthesis because the unary operator `not` has precedence over the binary operator `matches`.
101101

102102
Example:
103103

104104
```coffeescript
105-
'Arthur' ~ ' ' ~ 'Dent'
105+
'Arthur' + ' ' + 'Dent'
106106
```
107107

108108
Result will be set to `Arthur Dent`.

0 commit comments

Comments
 (0)