Skip to content

Commit 80af6b0

Browse files
committed
Auto merge of rust-lang#85859 - pickfire:patch-3, r=CraftSpider
Add title for copy to clipboard button in rustdoc This button ![image](https://user-images.githubusercontent.com/4687791/120210874-da4d1380-c262-11eb-9987-9145c4354029.png)
2 parents c9c1f8b + 0c5ed2c commit 80af6b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/render/print_item.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer,
8181
"<button id=\"copy-path\" onclick=\"copy_path(this)\">\
8282
<img src=\"{static_root_path}clipboard{suffix}.svg\" \
8383
width=\"19\" height=\"18\" \
84-
alt=\"Copy item import\">\
84+
alt=\"Copy item import\" \
85+
title=\"Copy item import to clipboard\">\
8586
</button>",
8687
static_root_path = page.get_static_root_path(),
8788
suffix = page.resource_suffix,

0 commit comments

Comments
 (0)