Rollup merge of #135116 - camelid:sidebar-case, r=fmease
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
This commit is contained in:
commit
1b370d32d6
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue