We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c1d301b + 0d33f6d commit 489296dCopy full SHA for 489296d
src/librustdoc/html/sources.rs
@@ -280,13 +280,15 @@ crate fn print_src(
280
tmp /= 10;
281
}
282
line_numbers.write_str("<pre class=\"line-numbers\">");
283
- for i in 1..=lines {
284
- match source_context {
285
- SourceContext::Standalone => {
286
- writeln!(line_numbers, "<span id=\"{0}\">{0:1$}</span>", i, cols)
+ match source_context {
+ SourceContext::Standalone => {
+ for line in 1..=lines {
+ writeln!(line_numbers, "<span id=\"{0}\">{0:1$}</span>", line, cols)
287
288
- SourceContext::Embedded { offset } => {
289
- writeln!(line_numbers, "<span>{0:1$}</span>", i + offset, cols)
+ }
+ SourceContext::Embedded { offset } => {
290
291
+ writeln!(line_numbers, "<span>{0:1$}</span>", line + offset, cols)
292
293
294
0 commit comments