Replace usages of ..i + 1 ranges with ..=i.

This commit is contained in:
Corey Farwell
2018-12-04 11:17:58 -08:00
parent 431e0ab62f
commit c025d61409
19 changed files with 36 additions and 36 deletions

View File

@@ -4796,7 +4796,7 @@ impl<'a> fmt::Display for Source<'a> {
tmp /= 10;
}
write!(fmt, "<pre class=\"line-numbers\">")?;
for i in 1..lines + 1 {
for i in 1..=lines {
write!(fmt, "<span id=\"{0}\">{0:1$}</span>\n", i, cols)?;
}
write!(fmt, "</pre>")?;