about summary refs log tree commit diff
path: root/tests/rustdoc/const-generics/const-generics-docs.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-02-07 11:23:25 -0700
committerMichael Howell <michael@notriddle.com>2023-02-07 11:23:25 -0700
commit8307fd7901c9832e7b22ee5139efe6f7f2d291b3 (patch)
tree71172e88833836c4f1897082c8f3d5b75b80df11 /tests/rustdoc/const-generics/const-generics-docs.rs
parent5dd0e1b7ae7bcddce28658487602e8a077737a3e (diff)
downloadrust-8307fd7901c9832e7b22ee5139efe6f7f2d291b3.tar.gz
rust-8307fd7901c9832e7b22ee5139efe6f7f2d291b3.zip
rustdoc: use a newline instead of `<br>` to format code headers
Since these elements now use `white-space: pre-wrap` since
784665d4ce59c5239791f1f96fa2137e47ca1817, it's fine to use newlines
for formatting, which is smaller and a bit less complicated.
Diffstat (limited to 'tests/rustdoc/const-generics/const-generics-docs.rs')
-rw-r--r--tests/rustdoc/const-generics/const-generics-docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/const-generics/const-generics-docs.rs b/tests/rustdoc/const-generics/const-generics-docs.rs
index ade70bbe80d..cbda095424b 100644
--- a/tests/rustdoc/const-generics/const-generics-docs.rs
+++ b/tests/rustdoc/const-generics/const-generics-docs.rs
@@ -31,7 +31,7 @@ impl Trait<{1 + 2}> for u8 {}
 impl<const N: usize> Trait<N> for [u8; N] {}
 
 // @has foo/struct.Foo.html '//pre[@class="rust item-decl"]' \
-//      'pub struct Foo<const N: usize>where u8: Trait<N>'
+//      'pub struct Foo<const N: usize> where u8: Trait<N>'
 pub struct Foo<const N: usize> where u8: Trait<N>;
 // @has foo/struct.Bar.html '//pre[@class="rust item-decl"]' 'pub struct Bar<T, const N: usize>(_)'
 pub struct Bar<T, const N: usize>([T; N]);