diff options
| author | Ivan Tham <pickfire@riseup.net> | 2021-05-31 22:51:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-31 22:51:59 +0800 |
| commit | 0c5ed2cb952408253bc8662b8bf973360c02c595 (patch) | |
| tree | ed8d703adb9fcb16f66d1ea06c91147069eb09bb /src/librustdoc | |
| parent | 91ddf3e76a17e7c890de182ae20571fde62ee753 (diff) | |
| download | rust-0c5ed2cb952408253bc8662b8bf973360c02c595.tar.gz rust-0c5ed2cb952408253bc8662b8bf973360c02c595.zip | |
Add title for copy to clipboard button in rustdoc
Diffstat (limited to 'src/librustdoc')
| -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, |
