Skip to content

Commit 0b2359b

Browse files
authored
Rollup merge of #93391 - notriddle:notriddle/remove-srclink-tooltip, r=jsha,GuillaumeGomez
rustdoc: remove tooltip from source link This made more sense back when it was abbreviated, but now it seems redundant.
2 parents 4484165 + 2e38e3b commit 0b2359b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustdoc/html/render/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl StylePath {
182182

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

src/librustdoc/html/templates/print_item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1 class="fqn"> {#- -#}
2020
{% endif %}
2121
{%- match src_href -%}
2222
{%- when Some with (href) -%}
23-
<a class="srclink" href="{{href|safe}}" title="goto source code">source</a> · {# -#}
23+
<a class="srclink" href="{{href|safe}}">source</a> · {# -#}
2424
{%- else -%}
2525
{%- endmatch -%}
2626
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}

0 commit comments

Comments
 (0)