Skip to content

Commit 91e1efc

Browse files
committed
Say "reserved" rather than "reserving" in title
Since all other chapter titles are either noun phrases (e.g. "additions to...", "X change", etc.) or verb phrases in imperative mood (e.g. "remove...", "reject...", "combine..."), it would be odd to have a stray chapter title in the present continuous tense ("reserving..."). Staying with a noun sounds better to my ear than an imperative verb phrase here, so let's do that. This "reserving..." chapter title was also used in the Rust 2021 guide. For consistency, let's change that title and URL also, and add a redirect.
1 parent d882e1a commit 91e1efc

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ search.use-boolean-and = true
8080
"/rust-2018/platform-and-target-support/msvc-toolchain-support.html" = "../../../rustc/platform-support.html"
8181
"/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html" = "../../../rustc/platform-support.html"
8282
"/rust-2018/platform-and-target-support/cdylib-crates-for-c-interoperability.html" = "https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md"
83+
"/rust-2021/reserving-syntax.html" = "reserved-syntax.html"
8384
"/rust-next/index.html" = "../rust-2021/index.html"
8485
"/rust-next/edition-changes.html" = "../rust-2021/index.html"
8586
"/rust-next/dbg-macro.html" = "../../std/macro.dbg.html"

src/SUMMARY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- [IntoIterator for arrays](rust-2021/IntoIterator-for-arrays.md)
3131
- [Disjoint capture in closures](rust-2021/disjoint-capture-in-closures.md)
3232
- [Panic macro consistency](rust-2021/panic-macro-consistency.md)
33-
- [Reserving syntax](rust-2021/reserving-syntax.md)
33+
- [Reserved syntax](rust-2021/reserved-syntax.md)
3434
- [Warnings promoted to errors](rust-2021/warnings-promoted-to-error.md)
3535
- [Or patterns in macro-rules](rust-2021/or-patterns-macro-rules.md)
3636
- [C-string literals](rust-2021/c-string-literals.md)
@@ -55,4 +55,4 @@
5555
- [Unsafe `extern` blocks](rust-2024/unsafe-extern.md)
5656
- [Unsafe attributes](rust-2024/unsafe-attributes.md)
5757
- [Rustdoc combined tests](rust-2024/rustdoc-doctests.md)
58-
- [Reserving syntax](rust-2024/reserving-syntax.md)
58+
- [Reserved syntax](rust-2024/reserved-syntax.md)

src/rust-2021/c-string-literals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ Migration is only necessary for macros which may have been assuming a sequence o
6969
As part of the [syntax reservation] for the 2021 edition, any macro input which may run into this issue should issue a warning from the `rust_2021_prefixes_incompatible_syntax` migration lint.
7070
See that chapter for more detail.
7171

72-
[syntax reservation]: reserving-syntax.md
72+
[syntax reservation]: reserved-syntax.md

src/rust-2021/reserving-syntax.md renamed to src/rust-2021/reserved-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Reserving syntax
1+
# Reserved syntax
22

33
## Summary
44

src/rust-2024/reserving-syntax.md renamed to src/rust-2024/reserved-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Reserving syntax
1+
# Reserved syntax
22

33
🚧 The 2024 Edition has not yet been released and hence this section is still "under construction".
44
More information may be found in the tracking issue at <https://github.com/rust-lang/rust/issues/123735>.
@@ -39,7 +39,7 @@ three tokens
3939

4040
Starting in the 2024 Edition, the `#"foo"#` line and the `###` line now generates a compile error because those forms are now reserved.
4141

42-
[2021]: ../rust-2021/reserving-syntax.md
42+
[2021]: ../rust-2021/reserved-syntax.md
4343
[string literal]: ../../reference/tokens.html#string-literals
4444
[RFC 3593]: https://rust-lang.github.io/rfcs/3593-unprefixed-guarded-strings.html
4545

0 commit comments

Comments
 (0)