range(a, b).foo() -> (a..b).foo()
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
This commit is contained in:
parent
bedd8108dc
commit
c300d681bd
55 changed files with 122 additions and 122 deletions
|
|
@ -812,7 +812,7 @@ impl TwoWaySearcher {
|
|||
|
||||
// See if the left part of the needle matches
|
||||
let start = if long_period { 0 } else { self.memory };
|
||||
for i in range(start, self.crit_pos).rev() {
|
||||
for i in (start..self.crit_pos).rev() {
|
||||
if needle[i] != haystack[self.position + i] {
|
||||
self.position += self.period;
|
||||
if !long_period {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue