diff options
| author | Michael Howell <michael@notriddle.com> | 2023-02-07 11:23:25 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-02-07 11:23:25 -0700 |
| commit | 8307fd7901c9832e7b22ee5139efe6f7f2d291b3 (patch) | |
| tree | 71172e88833836c4f1897082c8f3d5b75b80df11 /tests/rustdoc/inline_cross/impl_trait.rs | |
| parent | 5dd0e1b7ae7bcddce28658487602e8a077737a3e (diff) | |
| download | rust-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/inline_cross/impl_trait.rs')
| -rw-r--r-- | tests/rustdoc/inline_cross/impl_trait.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/inline_cross/impl_trait.rs b/tests/rustdoc/inline_cross/impl_trait.rs index 7d810ab4813..b6a1552bc00 100644 --- a/tests/rustdoc/inline_cross/impl_trait.rs +++ b/tests/rustdoc/inline_cross/impl_trait.rs @@ -11,7 +11,7 @@ pub use impl_trait_aux::func; // @has impl_trait/fn.func2.html // @has - '//pre[@class="rust item-decl"]' "func2<T>(" // @has - '//pre[@class="rust item-decl"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>," -// @has - '//pre[@class="rust item-decl"]' "_y: impl Iterator<Item = u8>)" +// @has - '//pre[@class="rust item-decl"]' "_y: impl Iterator<Item = u8> )" // @!has - '//pre[@class="rust item-decl"]' 'where' pub use impl_trait_aux::func2; |
