diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2025-01-04 19:51:56 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2025-01-06 14:26:07 -0800 |
| commit | b0aaa386d8f0af9dd4d08f3009498addbe0157fa (patch) | |
| tree | f9bc7ba754f037bee07d2ba54eb599364588ca0b /src/librustdoc/html | |
| parent | b76036c88c1fa7b63f412e777e185336848c52d6 (diff) | |
| download | rust-b0aaa386d8f0af9dd4d08f3009498addbe0157fa.tar.gz rust-b0aaa386d8f0af9dd4d08f3009498addbe0157fa.zip | |
rustdoc: Fix mismatched capitalization in sidebar
Previously, the main content used "Aliased Type", while the sidebar said "Aliased type". Now, they both say "Aliased Type", which is the more common capitalization in Rustdoc. See the following link for an example. https://doc.rust-lang.org/1.83.0/std/io/type.Result.html
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render/sidebar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/sidebar.rs b/src/librustdoc/html/render/sidebar.rs index af39d15f671..881df8b0050 100644 --- a/src/librustdoc/html/render/sidebar.rs +++ b/src/librustdoc/html/render/sidebar.rs @@ -357,7 +357,7 @@ fn sidebar_type_alias<'a>( deref_id_map: &'a DefIdMap<String>, ) { if let Some(inner_type) = &t.inner_type { - items.push(LinkBlock::forced(Link::new("aliased-type", "Aliased type"), "type")); + items.push(LinkBlock::forced(Link::new("aliased-type", "Aliased Type"), "type")); match inner_type { clean::TypeAliasInnerType::Enum { variants, is_non_exhaustive: _ } => { let mut variants = variants |
