summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-11-19 12:27:40 -0700
committerMichael Howell <michael@notriddle.com>2022-11-19 12:27:40 -0700
commita979b4a508370cfed030db99b598a39fb6ab8355 (patch)
tree7cfba1d99d32f912d1a2ff6462092e37371a4d47 /src/librustdoc/html/render
parent62c627c7a3a9b3e193a5ae6e1ec7348bc5136301 (diff)
downloadrust-a979b4a508370cfed030db99b598a39fb6ab8355.tar.gz
rust-a979b4a508370cfed030db99b598a39fb6ab8355.zip
rustdoc: use real buttons for scrape examples controls
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 8731efb5e87..647eb69d9a6 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -2915,7 +2915,7 @@ fn render_call_locations(w: &mut Buffer, cx: &mut Context<'_>, item: &clean::Ite
         );
 
         if line_ranges.len() > 1 {
-            write!(w, r#"<span class="prev">&pr;</span> <span class="next">&sc;</span>"#);
+            write!(w, r#"<button class="prev">&pr;</button> <button class="next">&sc;</button>"#);
         }
 
         // Look for the example file in the source map if it exists, otherwise return a dummy span