Skip to content

Commit

Permalink
Rollup merge of #93391 - notriddle:notriddle/remove-srclink-tooltip, …
Browse files Browse the repository at this point in the history
…r=jsha,GuillaumeGomez

rustdoc: remove tooltip from source link

This made more sense back when it was abbreviated, but now it seems redundant.
  • Loading branch information
matthiaskrgr committed Jan 29, 2022
2 parents 4484165 + 2e38e3b commit 0b2359b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustdoc/html/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl StylePath {

fn write_srclink(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer) {
if let Some(l) = cx.src_href(item) {
write!(buf, "<a class=\"srclink\" href=\"{}\" title=\"goto source code\">source</a>", l)
write!(buf, "<a class=\"srclink\" href=\"{}\">source</a>", l)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/templates/print_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 class="fqn"> {#- -#}
{% endif %}
{%- match src_href -%}
{%- when Some with (href) -%}
<a class="srclink" href="{{href|safe}}" title="goto source code">source</a> · {# -#}
<a class="srclink" href="{{href|safe}}">source</a> · {# -#}
{%- else -%}
{%- endmatch -%}
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}
Expand Down

0 comments on commit 0b2359b

Please sign in to comment.