Skip to content

Commit 6da5968

Browse files
committed
fix some links
1 parent 986aea4 commit 6da5968

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/expressions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ boolean value, or the unit value.
221221

222222
A [path](paths.html) used as an expression context denotes either a local
223223
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
225225
are rvalues. Using a `static mut` variable requires an [`unsafe`
226226
block](#unsafe-block).
227227

@@ -452,7 +452,7 @@ mystruct.method(); // Method expression
452452
(mystruct.function_field)() // Call expression containing a field expression
453453
```
454454

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)
456456
referring to the value of that field. When the subexpression is
457457
[mutable](#mutability), the field expression is also mutable.
458458

@@ -670,7 +670,7 @@ greater than 1 then this requires that the type of `a` is
670670
[Array and slice](types.html#array-and-slice-types)-typed expressions can be
671671
indexed by writing a square-bracket-enclosed expression (the index) after them.
672672
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.
674674
For other types an index expression `a[b]` is equivalent to
675675
`*std::ops::Index::index(&a, b)`, or `*std::opsIndexMut::index_mut(&mut a, b)`
676676
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
768768
a [pointer](types.html#pointer-types) it denotes the pointed-to location. If
769769
the expression is of type `&mut T` and `*mut T`, and is either a local
770770
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
772772
assigned to. Dereferencing a raw pointer requires `unsafe`.
773773

774774
On non-pointer types `*x` is equivalent to `*std::ops::Deref::deref(&x)` in an
@@ -1003,9 +1003,9 @@ same trait object.
10031003
### Assignment expressions
10041004

10051005
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
10071007
by an equals sign (`=`) and an
1008-
[rvalue](expressions.html#lvalues-rvalues-and-temporaries) expression.
1008+
[rvalue](expressions.html#lvalues-and-rvalues) expression.
10091009

10101010
Evaluating an assignment expression [either copies or
10111011
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
12671267
expression.
12681268

12691269
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).
12711271
If the head expression is an rvalue, it is first evaluated into a temporary
12721272
location, and the resulting value is sequentially compared to the patterns in
12731273
the arms until a match is found. The first arm with a matching pattern is

src/string-table-productions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ When such a string enclosed in double-quotes (`"`) occurs inside the grammar,
1212
it is an implicit reference to a single member of such a string table
1313
production. See [tokens] for more information.
1414

15-
[binary operators]: expressions.html#binary-operator-expressions
15+
[binary operators]: expressions.html#arithmetic-and-logical-binary-operators
1616
[keywords]: ../grammar.html#keywords
1717
[tokens]: tokens.html
18-
[unary operators]: expressions.html#unary-operator-expressions
18+
[unary operators]: expressions.html#borrow-operators

src/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ messages to indicate "the unique fn type for the function `foo`".
268268

269269
## Closure types
270270

271-
A [lambda expression](expressions.html#lambda-expressions) produces a closure
271+
A [closure expression](expressions.html#closure-expressions) produces a closure
272272
value with a unique, anonymous type that cannot be written out.
273273

274274
Depending on the requirements of the closure, its type implements one or

src/variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Variables
22

3-
A _variable_ is a component of a stack frame. That component can be a named function parameter,
4-
an anonymous [temporary](expressions.html#lvalues-rvalues-and-temporaries), or a named local
3+
A _variable_ is a component of a stack frame, either a named function parameter,
4+
an anonymous [temporary](expressions.html#lvalues-and-rvalues), or a named local
55
variable.
66

77
A _local variable_ (or *stack-local* allocation) holds a value directly,

0 commit comments

Comments
 (0)