Skip to content

Commit 14f605d

Browse files
committed
doc: fix dangling links in rust.md
Fixes #11559 (not that the manual couldn't use a review).
1 parent 2c19f51 commit 14f605d

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

doc/rust.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,12 +2211,9 @@ dereferences (`*expr`), [indexing expressions](#index-expressions)
22112211
(`expr[expr]`), and [field references](#field-expressions) (`expr.f`).
22122212
All other expressions are rvalues.
22132213

2214-
The left operand of an [assignment](#assignment-expressions),
2215-
[binary move](#binary-move-expressions) or
2214+
The left operand of an [assignment](#assignment-expressions) or
22162215
[compound-assignment](#compound-assignment-expressions) expression is an lvalue context,
2217-
as is the single operand of a unary [borrow](#unary-operator-expressions),
2218-
or [move](#unary-move-expressions) expression,
2219-
and _both_ operands of a [swap](#swap-expressions) expression.
2216+
as is the single operand of a unary [borrow](#unary-operator-expressions).
22202217
All other expression contexts are rvalue contexts.
22212218

22222219
When an lvalue is evaluated in an _lvalue context_, it denotes a memory location;
@@ -2229,9 +2226,8 @@ A temporary's lifetime equals the largest lifetime of any reference that points
22292226

22302227
When a [local variable](#memory-slots) is used
22312228
as an [rvalue](#lvalues-rvalues-and-temporaries)
2232-
the variable will either be [moved](#move-expressions) or copied,
2233-
depending on its type.
2234-
For types that contain [owning pointers](#owning-pointers)
2229+
the variable will either be moved or copied, depending on its type.
2230+
For types that contain [owning pointers](#pointer-types)
22352231
or values that implement the special trait `Drop`,
22362232
the variable is moved.
22372233
All other types are copied.
@@ -3144,19 +3140,20 @@ A `struct` *type* is a heterogeneous product of other types, called the *fields*
31443140
the *record* types of the ML family,
31453141
or the *structure* types of the Lisp family.]
31463142

3147-
New instances of a `struct` can be constructed with a [struct expression](#struct-expressions).
3143+
New instances of a `struct` can be constructed with a [struct expression](#structure-expressions).
31483144

31493145
The memory order of fields in a `struct` is given by the item defining it.
31503146
Fields may be given in any order in a corresponding struct *expression*;
31513147
the resulting `struct` value will always be laid out in memory in the order specified by the corresponding *item*.
31523148

3153-
The fields of a `struct` may be qualified by [visibility modifiers](#visibility-modifiers),
3149+
The fields of a `struct` may be qualified by [visibility modifiers](#re-exporting-and-visibility),
31543150
to restrict access to implementation-private data in a structure.
31553151

31563152
A _tuple struct_ type is just like a structure type, except that the fields are anonymous.
31573153

31583154
A _unit-like struct_ type is like a structure type, except that it has no fields.
3159-
The one value constructed by the associated [structure expression](#structure-expression) is the only value that inhabits such a type.
3155+
The one value constructed by the associated [structure expression](#structure-expressions)
3156+
is the only value that inhabits such a type.
31603157

31613158
### Enumerated types
31623159

@@ -3827,7 +3824,7 @@ over the output format of a Rust crate.
38273824
### Logging system
38283825

38293826
The runtime contains a system for directing [logging
3830-
expressions](#log-expressions) to a logging console and/or internal logging
3827+
expressions](#logging-expressions) to a logging console and/or internal logging
38313828
buffers. Logging can be enabled per module.
38323829

38333830
Logging output is enabled by setting the `RUST_LOG` environment

0 commit comments

Comments
 (0)