about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorLiigo Zhuang <liigo@qq.com>2021-05-20 14:54:28 +0800
committerLiigo Zhuang <liigo@qq.com>2021-05-20 14:54:28 +0800
commit375ca93c475732fa71feacb6d7f65ca191dfa170 (patch)
tree290e82cfc7b6e6980ae75442d715db69f808a189 /src/librustdoc/html/render
parenta426fc37f2269093ef1a4dbb3e31b3247980fccc (diff)
downloadrust-375ca93c475732fa71feacb6d7f65ca191dfa170.tar.gz
rust-375ca93c475732fa71feacb6d7f65ca191dfa170.zip
rustdoc: add tooltips to some buttons
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/print_item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index bac9c21f0f3..5799f5859ce 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -78,7 +78,7 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer,
     write!(buf, "<a class=\"{}\" href=\"\">{}</a>", item.type_(), item.name.as_ref().unwrap());
     write!(
         buf,
-        "<button id=\"copy-path\" onclick=\"copy_path(this)\">\
+        "<button id=\"copy-path\" onclick=\"copy_path(this)\" title=\"copy path\">\
             <img src=\"{static_root_path}clipboard{suffix}.svg\" \
                 width=\"19\" height=\"18\" \
                 alt=\"Copy item import\">\