Skip to content

Commit 561f1b0

Browse files
committed
iter: fix range docstrings
1 parent bca015d commit 561f1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ pub fn count<A>(start: A, step: A) -> Counter<A> {
17191719
Counter{state: start, step: step}
17201720
}
17211721

1722-
/// A range of numbers from [0, N)
1722+
/// An iterator over the range [start, stop)
17231723
#[deriving(Clone, DeepClone)]
17241724
pub struct Range<A> {
17251725
priv state: A,
@@ -1765,7 +1765,7 @@ impl<A: Sub<A, A> + Integer + Ord + Clone> DoubleEndedIterator<A> for Range<A> {
17651765
}
17661766
}
17671767

1768-
/// A range of numbers from [0, N]
1768+
/// An iterator over the range [start, stop]
17691769
#[deriving(Clone, DeepClone)]
17701770
pub struct RangeInclusive<A> {
17711771
priv range: Range<A>,

0 commit comments

Comments
 (0)