diff options
| author | bors <bors@rust-lang.org> | 2021-06-01 06:40:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-01 06:40:57 +0000 |
| commit | 80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8 (patch) | |
| tree | 753209d2c05daacbcda07533be2c66ddf4285f1f | |
| parent | c9c1f8be3fda5b58520c579451d3f5e20736ec90 (diff) | |
| parent | 0c5ed2cb952408253bc8662b8bf973360c02c595 (diff) | |
| download | rust-80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8.tar.gz rust-80af6b091f6a4855be71bba1cd0c1ee9fd2a57a8.zip | |
Auto merge of #85859 - pickfire:patch-3, r=CraftSpider
Add title for copy to clipboard button in rustdoc This button 
| -rw-r--r-- | src/librustdoc/html/render/print_item.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs index e06168c708c..42d7e9c8c93 100644 --- a/src/librustdoc/html/render/print_item.rs +++ b/src/librustdoc/html/render/print_item.rs @@ -81,7 +81,8 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer, "<button id=\"copy-path\" onclick=\"copy_path(this)\">\ <img src=\"{static_root_path}clipboard{suffix}.svg\" \ width=\"19\" height=\"18\" \ - alt=\"Copy item import\">\ + alt=\"Copy item import\" \ + title=\"Copy item import to clipboard\">\ </button>", static_root_path = page.get_static_root_path(), suffix = page.resource_suffix, |
