rustdoc: use a newline instead of <br>
to format code headers
Since these elements now use `white-space: pre-wrap` since
784665d4ce
, it's fine to use newlines
for formatting, which is smaller and a bit less complicated.
This commit is contained in:
parent
5dd0e1b7ae
commit
8307fd7901
15 changed files with 61 additions and 39 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue