Skip to content

Commit f4f476d

Browse files
committed
Docs: Fix phrasing
1 parent e8aab9e commit f4f476d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/grammar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ Each item is one of:
239239
* `item ~ n` - Exactly *n* instances of item
240240
* `item ~ n..m` - Between *n* to *m* instances of item (not recommended for wide ranges, due to performance issues)
241241
242-
Despite `~ n` being written with spaces, its binding power is the same as that of other operators,
243-
for instance `a b ~ 3` parses as `a (b ~ 4)`, and `a ~ 2 b ~ 3` is parsed as `(a ~ 2) (b ~ 3)`.
242+
Note that all operators, including `~ n`, apply directly to the item on their left.
243+
For instance `a ~ 2 b ~ 3` is parsed as `(a ~ 2) (b ~ 3)`.
244244
245245
**Examples:**
246246
```perl

0 commit comments

Comments
 (0)