Skip to content

Commit

Permalink
update docs with new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jan 14, 2017
1 parent 60bab56 commit 4920721
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/libcollections/btree/map.rs
Expand Up @@ -656,11 +656,11 @@ impl<K: Ord, V> BTreeMap<K, V> {
}

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

/// Constructs a mutable double-ended iterator over a sub-range of elements in the map.
/// The simplest way is to use the range synax `min..max`, thus `range(..)` will
/// yield the whole collection.
/// The simplest way is to use the range synax `min..max`, thus `range(min..max)` will
/// yield elements from min (inclusive) to max (exclusive).
/// The range may also be entered as `(Bound<T>, Bound<T>)`, so for example
/// `range((Excluded(4), Included(10)))` will yield a left-exclusive, right-inclusive
/// range.
/// range from 4 to 10.
///
/// # Examples
///
Expand Down
6 changes: 3 additions & 3 deletions src/libcollections/btree/set.rs
Expand Up @@ -208,11 +208,11 @@ impl<T> BTreeSet<T> {

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

0 comments on commit 4920721

Please sign in to comment.