Skip to content

Commit eb020fc

Browse files
committed
Add missing bypass on BorrowExpression
In compacting grammar productions, the `BorrowExpression` production needs to preserve the case that allows `&$EXPR`, but did not. Let's fix that.
1 parent 7d720ec commit eb020fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions/operator-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ r[expr.operator.borrow]
5858
r[expr.operator.borrow.syntax]
5959
```grammar,expressions
6060
BorrowExpression ->
61-
(`&`|`&&`) ( `mut` | (`raw` (`const` | `mut`))) Expression
61+
(`&`|`&&`) ( `mut` | (`raw` (`const` | `mut`)))? Expression
6262
```
6363

6464
r[expr.operator.borrow.intro]

0 commit comments

Comments
 (0)