about summary refs log tree commit diff
path: root/tests/rustdoc/whitespace-after-where-clause.struct.html
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-01-23 17:10:54 -0700
committerMichael Howell <michael@notriddle.com>2023-01-23 17:32:22 -0700
commite65b36110f943118b7e50c4e39e26ad1f07d8552 (patch)
treec5599d1c06b8805f09b94973add4d00b41f712f8 /tests/rustdoc/whitespace-after-where-clause.struct.html
parentc8e6a9e8b6251bbc8276cb78cabe1998deecbed7 (diff)
downloadrust-e65b36110f943118b7e50c4e39e26ad1f07d8552.tar.gz
rust-e65b36110f943118b7e50c4e39e26ad1f07d8552.zip
rustdoc: rearrange HTML in primitive reference links
This patch avoids hard-to-click single character links by making
the generic part of the link:

Before: <a href="#">&</a>T

After: <a href="#">&T</a>
Diffstat (limited to 'tests/rustdoc/whitespace-after-where-clause.struct.html')
-rw-r--r--tests/rustdoc/whitespace-after-where-clause.struct.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/whitespace-after-where-clause.struct.html b/tests/rustdoc/whitespace-after-where-clause.struct.html
index f375265d7c1..5892270b2f9 100644
--- a/tests/rustdoc/whitespace-after-where-clause.struct.html
+++ b/tests/rustdoc/whitespace-after-where-clause.struct.html
@@ -1,4 +1,4 @@
 <div class="item-decl"><pre class="rust"><code>pub struct Struct&lt;'a, B&gt;<span class="where fmt-newline">where<br />&#160;&#160;&#160;&#160;B: <a class="trait" href="trait.ToOwned.html" title="trait foo::ToOwned">ToOwned</a>&lt;dyn <a class="trait" href="{{channel}}/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; + ?<a class="trait" href="{{channel}}/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + 'a,</span>{
-    pub a: <a class="primitive" href="{{channel}}/std/primitive.reference.html">&amp;'a </a>B,
+    pub a: <a class="primitive" href="{{channel}}/std/primitive.reference.html">&amp;'a B</a>,
     pub b: <a class="primitive" href="{{channel}}/std/primitive.u32.html">u32</a>,
 }</code></pre></div>
\ No newline at end of file