rustdoc: Fix mismatched capitalization in sidebar · rust-lang/rust@b0aaa38 (original) (raw)
File tree
2 files changed
lines changed
- src/librustdoc/html/render
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -357,7 +357,7 @@ fn sidebar_type_alias<'a>( | ||
357 | 357 | deref_id_map: &'a DefIdMap<String>, |
358 | 358 | ) { |
359 | 359 | 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")); | |
361 | 361 | match inner_type { |
362 | 362 | clean::TypeAliasInnerType::Enum { variants, is_non_exhaustive: _ } => { |
363 | 363 | let mut variants = variants |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -19,8 +19,8 @@ impl Foo for GenericStruct {} | ||
19 | 19 | impl Bar for GenericStruct<u32> {} |
20 | 20 | |
21 | 21 | //@ has 'foo/type.TypedefStruct.html' |
22 | -// We check that "Aliased type" is also present as a title in the sidebar. | |
23 | -//@ has - '//*[@class="sidebar-elems"]//h3/a[@href="#aliased-type"]' 'Aliased type' | |
22 | +// We check that "Aliased Type" is also present as a title in the sidebar. | |
23 | +//@ has - '//*[@class="sidebar-elems"]//h3/a[@href="#aliased-type"]' 'Aliased Type' | |
24 | 24 | // We check that we have the implementation of the type alias itself. |
25 | 25 | //@ has - '//*[@id="impl-GenericStruct%3Cu8%3E"]/h3' 'impl TypedefStruct' |
26 | 26 | //@ has - '//*[@id="method.on_alias"]/h4' 'pub fn on_alias()' |