Skip to content

Commit c5183c6

Browse files
committed
Clarify all borrow operators in the precedence table
This removes `&` and `&mut` and instead just links to the full grammar for what the borrow operators are. There are many other variants, like `&&` or `&raw`, and I didn't want to write all of them down. The keywords after the `&&` are just modifiers, and are not really separate things to be considered anyways. Closes #1726
1 parent 5d44046 commit c5183c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expressions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Binary Operators at the same precedence level are grouped in the order given by
8181
| [Field expressions][expr.field] | left to right |
8282
| [Function calls][expr.call], [array indexing][expr.array.index] | |
8383
| [`?`][expr.try] | |
84-
| Unary [`-`][expr.negate] [`!`][expr.negate] [`*`][expr.deref] [`&`][expr.operator.borrow] [`&mut`][expr.operator.borrow] | |
84+
| Unary [`-`][expr.negate] [`!`][expr.negate] [`*`][expr.deref] [borrow][expr.operator.borrow] | |
8585
| [`as`][expr.as] | left to right |
8686
| [`*`][expr.arith-logic] [`/`][expr.arith-logic] [`%`][expr.arith-logic] | left to right |
8787
| [`+`][expr.arith-logic] [`-`][expr.arith-logic] | left to right |

0 commit comments

Comments
 (0)