Skip to content

Commit 5b22b3a

Browse files
authored
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
1 parent b76036c commit 5b22b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/sidebar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ fn sidebar_type_alias<'a>(
357357
deref_id_map: &'a DefIdMap<String>,
358358
) {
359359
if let Some(inner_type) = &t.inner_type {
360-
items.push(LinkBlock::forced(Link::new("aliased-type", "Aliased type"), "type"));
360+
items.push(LinkBlock::forced(Link::new("aliased-type", "Aliased Type"), "type"));
361361
match inner_type {
362362
clean::TypeAliasInnerType::Enum { variants, is_non_exhaustive: _ } => {
363363
let mut variants = variants

0 commit comments

Comments
 (0)