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/async-fn.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/async-fn.rs')
| -rw-r--r-- | tests/rustdoc/async-fn.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/async-fn.rs b/tests/rustdoc/async-fn.rs index 3db344af674..70bcbcb6ff4 100644 --- a/tests/rustdoc/async-fn.rs +++ b/tests/rustdoc/async-fn.rs @@ -77,7 +77,7 @@ struct AsyncFdReadyGuard<'a, T> { x: &'a T } impl Foo { // @has async_fn/struct.Foo.html - // @has - '//*[@class="method"]' 'pub async fn complicated_lifetimes( &self, context: &impl Bar) -> impl Iterator<Item = &usize>' + // @has - '//*[@class="method"]' 'pub async fn complicated_lifetimes( &self, context: &impl Bar ) -> impl Iterator<Item = &usize>' pub async fn complicated_lifetimes(&self, context: &impl Bar) -> impl Iterator<Item = &usize> {} // taken from `tokio` as an example of a method that was particularly bad before // @has - '//*[@class="method"]' "pub async fn readable<T>(&self) -> Result<AsyncFdReadyGuard<'_, T>, ()>" |
