diff options
Diffstat (limited to 'src/components/util/range.rs')
-rw-r--r-- | src/components/util/range.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/util/range.rs b/src/components/util/range.rs index 6f3ce3e9e86..a0943728a77 100644 --- a/src/components/util/range.rs +++ b/src/components/util/range.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use std::cmp::{max, min}; -use std::iterator; +use std::iter; enum RangeRelation { OverlapsBegin(/* overlap */ uint), @@ -36,7 +36,7 @@ impl Range { pub fn length(&self) -> uint { self.len } pub fn end(&self) -> uint { self.off + self.len } - pub fn eachi(&self) -> iterator::Range<uint> { + pub fn eachi(&self) -> iter::Range<uint> { range(self.off, self.off + self.len) } |