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:
parent
c300d681bd
commit
7d661af9c8
155 changed files with 490 additions and 490 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue