Skip to content

Commit 4920721

Browse files
committed
update docs with new syntax
1 parent 60bab56 commit 4920721

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/libcollections/btree/map.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -656,11 +656,11 @@ impl<K: Ord, V> BTreeMap<K, V> {
656656
}
657657

658658
/// Constructs a double-ended iterator over a sub-range of elements in the map.
659-
/// The simplest way is to use the range synax `min..max`, thus `range(..)` will
660-
/// yield the whole collection.
659+
/// The simplest way is to use the range synax `min..max`, thus `range(min..max)` will
660+
/// yield elements from min (inclusive) to max (exclusive).
661661
/// The range may also be entered as `(Bound<T>, Bound<T>)`, so for example
662662
/// `range((Excluded(4), Included(10)))` will yield a left-exclusive, right-inclusive
663-
/// range.
663+
/// range from 4 to 10.
664664
///
665665
/// # Examples
666666
///
@@ -748,11 +748,11 @@ impl<K: Ord, V> BTreeMap<K, V> {
748748
}
749749

750750
/// Constructs a mutable double-ended iterator over a sub-range of elements in the map.
751-
/// The simplest way is to use the range synax `min..max`, thus `range(..)` will
752-
/// yield the whole collection.
751+
/// The simplest way is to use the range synax `min..max`, thus `range(min..max)` will
752+
/// yield elements from min (inclusive) to max (exclusive).
753753
/// The range may also be entered as `(Bound<T>, Bound<T>)`, so for example
754754
/// `range((Excluded(4), Included(10)))` will yield a left-exclusive, right-inclusive
755-
/// range.
755+
/// range from 4 to 10.
756756
///
757757
/// # Examples
758758
///

src/libcollections/btree/set.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ impl<T> BTreeSet<T> {
208208

209209
impl<T: Ord> BTreeSet<T> {
210210
/// Constructs a double-ended iterator over a sub-range of elements in the set.
211-
/// The simplest way is to use the range synax `min..max`, thus `range(..)` will
212-
/// yield the whole collection.
211+
/// The simplest way is to use the range synax `min..max`, thus `range(min..max)` will
212+
/// yield elements from min (inclusive) to max (exclusive).
213213
/// The range may also be entered as `(Bound<T>, Bound<T>)`, so for example
214214
/// `range((Excluded(4), Included(10)))` will yield a left-exclusive, right-inclusive
215-
/// range.
215+
/// range from 4 to 10.
216216
///
217217
/// # Examples
218218
///

0 commit comments

Comments
 (0)