@@ -221,7 +221,7 @@ boolean value, or the unit value.
221
221
222
222
A [ path] ( paths.html ) used as an expression context denotes either a local
223
223
variable or an item. Path expressions that resolve to local or static variables
224
- are [ lvalues] ( expressions.html#lvalues-rvalues- and-temporaries ) , other paths
224
+ are [ lvalues] ( expressions.html#lvalues-and-rvalues ) , other paths
225
225
are rvalues. Using a ` static mut ` variable requires an [ ` unsafe `
226
226
block] ( #unsafe-block ) .
227
227
@@ -452,7 +452,7 @@ mystruct.method(); // Method expression
452
452
(mystruct.function_field)() // Call expression containing a field expression
453
453
```
454
454
455
- A field access is an [ lvalue] ( expressions.html#lvalues-rvalues- and-temporaries )
455
+ A field access is an [ lvalue] ( expressions.html#lvalues-and-rvalues )
456
456
referring to the value of that field. When the subexpression is
457
457
[ mutable] ( #mutability ) , the field expression is also mutable.
458
458
@@ -670,7 +670,7 @@ greater than 1 then this requires that the type of `a` is
670
670
[ Array and slice] ( types.html#array-and-slice-types ) -typed expressions can be
671
671
indexed by writing a square-bracket-enclosed expression (the index) after them.
672
672
When the array is mutable, the resulting
673
- [ lvalue] ( expressions.html#lvalues-rvalues- and-temporaries ) can be assigned to.
673
+ [ lvalue] ( expressions.html#lvalues-and-rvalues ) can be assigned to.
674
674
For other types an index expression ` a[b] ` is equivalent to
675
675
` *std::ops::Index::index(&a, b) ` , or ` *std::opsIndexMut::index_mut(&mut a, b) `
676
676
in a mutable lvalue context. Just as with methods, Rust will also insert
@@ -768,7 +768,7 @@ The `*` (dereference) operator is also a unary prefix operator. When applied to
768
768
a [ pointer] ( types.html#pointer-types ) it denotes the pointed-to location. If
769
769
the expression is of type ` &mut T ` and ` *mut T ` , and is either a local
770
770
variable, a (nested) field of a local variance or is a mutable lvalue, then the
771
- resulting [ lvalue] ( expressions.html#lvalues-rvalues- and-temporaries ) can be
771
+ resulting [ lvalue] ( expressions.html#lvalues-and-rvalues ) can be
772
772
assigned to. Dereferencing a raw pointer requires ` unsafe ` .
773
773
774
774
On non-pointer types ` *x ` is equivalent to ` *std::ops::Deref::deref(&x) ` in an
@@ -1003,9 +1003,9 @@ same trait object.
1003
1003
### Assignment expressions
1004
1004
1005
1005
An _ assignment expression_ consists of an
1006
- [ lvalue] ( expressions.html#lvalues-rvalues- and-temporaries ) expression followed
1006
+ [ lvalue] ( expressions.html#lvalues-and-rvalues ) expression followed
1007
1007
by an equals sign (` = ` ) and an
1008
- [ rvalue] ( expressions.html#lvalues-rvalues- and-temporaries ) expression.
1008
+ [ rvalue] ( expressions.html#lvalues-and-rvalues ) expression.
1009
1009
1010
1010
Evaluating an assignment expression [ either copies or
1011
1011
moves] ( #moved-and-copied-types ) its right-hand operand to its left-hand
@@ -1267,7 +1267,7 @@ the patterns. The type of the patterns must equal the type of the head
1267
1267
expression.
1268
1268
1269
1269
A ` match ` behaves differently depending on whether or not the head expression
1270
- is an [ lvalue or an rvalue] ( expressions.html#lvalues-rvalues- and-temporaries ) .
1270
+ is an [ lvalue or an rvalue] ( expressions.html#lvalues-and-rvalues ) .
1271
1271
If the head expression is an rvalue, it is first evaluated into a temporary
1272
1272
location, and the resulting value is sequentially compared to the patterns in
1273
1273
the arms until a match is found. The first arm with a matching pattern is
0 commit comments