Skip to content

Commit b594b9f

Browse files
Remove quotes around href in code line numbers
1 parent 9222b05 commit b594b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustdoc/html/highlight.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ fn write_scraped_line_number(out: &mut impl Write, line: u32, extra: &'static st
249249
fn write_line_number(out: &mut impl Write, line: u32, extra: &'static str) {
250250
// https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag#data-nosnippet-attr
251251
// Do not show "1 2 3 4 5 ..." in web search results.
252-
write!(out, "{extra}<a href=\"#{line}\" id={line} data-nosnippet>{line}</a>",).unwrap();
252+
write!(out, "{extra}<a href=#{line} id={line} data-nosnippet>{line}</a>",).unwrap();
253253
}
254254

255255
fn empty_line_number(out: &mut impl Write, _: u32, extra: &'static str) {

0 commit comments

Comments
 (0)