Skip to content

Commit 017b42a

Browse files
committed
Fix compilation issues in mdbook
FIXME: Error with `r[type.closure.capture.composite]` but the rule seems to be wf?
1 parent 07e0394 commit 017b42a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/types/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ r[type.array.syntax]
77
> _ArrayType_ :\
88
>    `[` [_Type_] `;` [_Expression_] `]`
99
10-
r[type.array.index]
10+
r[type.array.intro]
1111
An array is a fixed-size sequence of `N` elements of type `T`. The array type
1212
is written as `[T; N]`.
1313

src/types/closure.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ types, by copy, regardless of whether a borrow would work. The `move` keyword is
6565
usually used to allow the closure to outlive the captured values, such as if the
6666
closure is being returned or used to spawn a new thread.
6767

68-
r[type.closure.capture.composite] <!-- editor note, not true in Edition 2021 -->
68+
r[type.closure.capture.composite]
6969
Composite types such as structs, tuples, and enums are always captured entirely,
7070
not by individual fields. It may be necessary to borrow into a local variable in
7171
order to capture a single field:
72+
<!-- editor note, not true in Edition 2021 -->
7273

7374
```rust
7475
# use std::collections::HashSet;

0 commit comments

Comments
 (0)