From 561f1b006321501dfe5a059444fc8f560010c2ba Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 14 Sep 2013 16:33:19 -0400 Subject: iter: fix range docstrings --- src/libstd/iter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/iter.rs b/src/libstd/iter.rs index ec3c02a31f2..a0de8b1efad 100644 --- a/src/libstd/iter.rs +++ b/src/libstd/iter.rs @@ -1719,7 +1719,7 @@ pub fn count(start: A, step: A) -> Counter { Counter{state: start, step: step} } -/// A range of numbers from [0, N) +/// An iterator over the range [start, stop) #[deriving(Clone, DeepClone)] pub struct Range { priv state: A, @@ -1765,7 +1765,7 @@ impl + Integer + Ord + Clone> DoubleEndedIterator for Range { } } -/// A range of numbers from [0, N] +/// An iterator over the range [start, stop] #[deriving(Clone, DeepClone)] pub struct RangeInclusive { priv range: Range, -- cgit 1.4.1-3-g733a5