diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-26 16:05:07 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-29 07:49:01 -0500 |
| commit | efc97a51ffc798247e36156cf8e2d175bf509018 (patch) | |
| tree | 2add0ca20cbe4fc9abec6e98d5d15e2065d12322 /src/libcore/str | |
| parent | 7d661af9c86566088f7dbaeee25143ecde673b75 (diff) | |
| download | rust-efc97a51ffc798247e36156cf8e2d175bf509018.tar.gz rust-efc97a51ffc798247e36156cf8e2d175bf509018.zip | |
convert remaining `range(a, b)` to `a..b`
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index dc57d22bbca..9f1d781fcbf 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -800,7 +800,7 @@ impl TwoWaySearcher { // See if the right part of the needle matches let start = if long_period { self.crit_pos } else { cmp::max(self.crit_pos, self.memory) }; - for i in range(start, needle.len()) { + for i in start..needle.len() { if needle[i] != haystack[self.position + i] { self.position += i - self.crit_pos + 1; if !long_period { |
