about summary refs log tree commit diff
path: root/tests/rustdoc
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-06 22:04:16 -0500
committerGitHub <noreply@github.com>2025-01-06 22:04:16 -0500
commit1b370d32d6fcc70687c3a62c87d37154e2c1962d (patch)
tree73b282e260cb69f292d852bd836f3af450a44686 /tests/rustdoc
parent8b54f951e56a4c0edfd724d3ca7700696f7abe78 (diff)
parentb0aaa386d8f0af9dd4d08f3009498addbe0157fa (diff)
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
Diffstat (limited to 'tests/rustdoc')
-rw-r--r--tests/rustdoc/type-alias/deref-32077.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rustdoc/type-alias/deref-32077.rs b/tests/rustdoc/type-alias/deref-32077.rs
index 79a83381340..faab4b6f522 100644
--- a/tests/rustdoc/type-alias/deref-32077.rs
+++ b/tests/rustdoc/type-alias/deref-32077.rs
@@ -19,8 +19,8 @@ impl<T> Foo for GenericStruct<T> {}
 impl Bar for GenericStruct<u32> {}
 
 //@ has 'foo/type.TypedefStruct.html'
-// We check that "Aliased type" is also present as a title in the sidebar.
-//@ has - '//*[@class="sidebar-elems"]//h3/a[@href="#aliased-type"]' 'Aliased type'
+// We check that "Aliased Type" is also present as a title in the sidebar.
+//@ has - '//*[@class="sidebar-elems"]//h3/a[@href="#aliased-type"]' 'Aliased Type'
 // We check that we have the implementation of the type alias itself.
 //@ has - '//*[@id="impl-GenericStruct%3Cu8%3E"]/h3' 'impl TypedefStruct'
 //@ has - '//*[@id="method.on_alias"]/h4' 'pub fn on_alias()'