1
Fork 0

for x in range(a, b) -> for x in a..b

sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
This commit is contained in:
Jorge Aparicio 2015-01-26 15:46:12 -05:00
parent c300d681bd
commit 7d661af9c8
155 changed files with 490 additions and 490 deletions

View file

@ -154,7 +154,7 @@ impl TocBuilder {
// fill in any missing zeros, e.g. for
// # Foo (1)
// ### Bar (1.0.1)
for _ in range(toc_level, level - 1) {
for _ in toc_level..level - 1 {
sec_number.push_str("0.");
}
let number = toc.count_entries_with_level(level);