Skip to content

Commit 6eb4117

Browse files
committed
Minor tweaks to rustc book summary formatting.
1 parent a09d36d commit 6eb4117

12 files changed

+23
-23
lines changed

src/doc/rustc/src/SUMMARY.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# The Rustc Book
22

33
- [What is rustc?](what-is-rustc.md)
4-
- [Command-line arguments](command-line-arguments.md)
4+
- [Command-line Arguments](command-line-arguments.md)
5+
- [Codegen Options](codegen-options/index.md)
56
- [Lints](lints/index.md)
6-
- [Lint levels](lints/levels.md)
7+
- [Lint Levels](lints/levels.md)
78
- [Lint Groups](lints/groups.md)
8-
- [Lint listing](lints/listing/index.md)
9-
- [Allowed-by-default lints](lints/listing/allowed-by-default.md)
10-
- [Warn-by-default lints](lints/listing/warn-by-default.md)
11-
- [Deny-by-default lints](lints/listing/deny-by-default.md)
12-
- [Codegen options](codegen-options/index.md)
9+
- [Lint Listing](lints/listing/index.md)
10+
- [Allowed-by-default Lints](lints/listing/allowed-by-default.md)
11+
- [Warn-by-default Lints](lints/listing/warn-by-default.md)
12+
- [Deny-by-default Lints](lints/listing/deny-by-default.md)
1313
- [JSON Output](json.md)
1414
- [Tests](tests/index.md)
1515
- [Platform Support](platform-support.md)
16-
- [Template for target-specific documentation](platform-support/TEMPLATE.md)
16+
- [Target Tier Policy](target-tier-policy.md)
17+
- [Template for Target-specific Documentation](platform-support/TEMPLATE.md)
1718
- [aarch64-apple-ios-sim](platform-support/aarch64-apple-ios-sim.md)
1819
- [armv7-unknown-linux-uclibceabi](platform-support/armv7-unknown-linux-uclibceabi.md)
1920
- [armv7-unknown-linux-uclibceabihf](platform-support/armv7-unknown-linux-uclibceabihf.md)
@@ -25,13 +26,12 @@
2526
- [*-unknown-openbsd](platform-support/openbsd.md)
2627
- [wasm64-unknown-unknown](platform-support/wasm64-unknown-unknown.md)
2728
- [x86_64-unknown-none](platform-support/x86_64-unknown-none.md)
28-
- [Target Tier Policy](target-tier-policy.md)
2929
- [Targets](targets/index.md)
3030
- [Built-in Targets](targets/built-in.md)
3131
- [Custom Targets](targets/custom.md)
3232
- [Known Issues](targets/known-issues.md)
3333
- [Profile-guided Optimization](profile-guided-optimization.md)
3434
- [Instrumentation-based Code Coverage](instrument-coverage.md)
35-
- [Linker-plugin based LTO](linker-plugin-lto.md)
35+
- [Linker-plugin-based LTO](linker-plugin-lto.md)
3636
- [Exploit Mitigations](exploit-mitigations.md)
3737
- [Contributing to `rustc`](contributing.md)

src/doc/rustc/src/codegen-options/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Codegen options
1+
# Codegen Options
22

33
All of these options are passed to `rustc` via the `-C` flag, short for "codegen." You can see
44
a version of this list for your exact compiler by running `rustc -C help`.

src/doc/rustc/src/command-line-arguments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Command-line arguments
1+
# Command-line Arguments
22

33
Here's a list of command-line arguments to `rustc` and what they do.
44

src/doc/rustc/src/instrument-coverage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `instrument-coverage`
1+
# Instrumentation-based Code Coverage
22

33
## Introduction
44

src/doc/rustc/src/linker-plugin-lto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Linker-plugin-LTO
1+
# Linker-plugin-based LTO
22

33
The `-C linker-plugin-lto` flag allows for deferring the LTO optimization
44
to the actual linking step, which in turn allows for performing

src/doc/rustc/src/lints/levels.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Lint levels
1+
# Lint Levels
22

33
In `rustc`, lints are divided into five *levels*:
44

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Allowed-by-default lints
1+
# Allowed-by-default Lints
22

33
This file is auto-generated by the lint-docs script.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Deny-by-default lints
1+
# Deny-by-default Lints
22

33
This file is auto-generated by the lint-docs script.

src/doc/rustc/src/lints/listing/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Lint listing
1+
# Lint Listing
22

33
This section lists out all of the lints, grouped by their default lint levels.
44

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Warn-by-default lints
1+
# Warn-by-default Lints
22

33
This file is auto-generated by the lint-docs script.

src/doc/rustc/src/profile-guided-optimization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Profile Guided Optimization
1+
# Profile-guided Optimization
22

33
`rustc` supports doing profile-guided optimization (PGO).
44
This chapter describes what PGO is, what it is good for, and how it can be used.

src/tools/lint-docs/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -482,20 +482,20 @@ fn lint_name(line: &str) -> Result<String, &'static str> {
482482
}
483483
}
484484

485-
static ALLOWED_MD: &str = r#"# Allowed-by-default lints
485+
static ALLOWED_MD: &str = r#"# Allowed-by-default Lints
486486
487487
These lints are all set to the 'allow' level by default. As such, they won't show up
488488
unless you set them to a higher lint level with a flag or attribute.
489489
490490
"#;
491491

492-
static WARN_MD: &str = r#"# Warn-by-default lints
492+
static WARN_MD: &str = r#"# Warn-by-default Lints
493493
494494
These lints are all set to the 'warn' level by default.
495495
496496
"#;
497497

498-
static DENY_MD: &str = r#"# Deny-by-default lints
498+
static DENY_MD: &str = r#"# Deny-by-default Lints
499499
500500
These lints are all set to the 'deny' level by default.
501501

0 commit comments

Comments
 (0)