diff options
| author | Liigo Zhuang <liigo@qq.com> | 2021-05-20 14:54:28 +0800 |
|---|---|---|
| committer | Liigo Zhuang <liigo@qq.com> | 2021-05-20 14:54:28 +0800 |
| commit | 375ca93c475732fa71feacb6d7f65ca191dfa170 (patch) | |
| tree | 290e82cfc7b6e6980ae75442d715db69f808a189 /src/librustdoc/html/render | |
| parent | a426fc37f2269093ef1a4dbb3e31b3247980fccc (diff) | |
| download | rust-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.rs | 2 |
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\">\ |
