Skip to content

Commit 58d3f10

Browse files
committed
doc: Small rewording.
1 parent 53c6391 commit 58d3f10

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/libcollections/treemap.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ use vec::Vec;
6464
/// println!("{}: {}", key, value);
6565
/// }
6666
///
67-
/// // Print 1, 2, 3
67+
/// // Prints 1, 2, 3
6868
/// for key in map.keys() {
6969
/// println!("{}", key);
7070
/// }
7171
///
72-
/// // Print `foo`, `bar`, `quux`
72+
/// // Prints `foo`, `bar`, `quux`
7373
/// for key in map.values() {
7474
/// println!("{}", key);
7575
/// }
@@ -108,7 +108,7 @@ use vec::Vec;
108108
/// // Implement `Ord` and sort trolls by level.
109109
/// impl<'a> Ord for Troll<'a> {
110110
/// fn cmp(&self, other: &Troll) -> Ordering {
111-
/// // If we swap `self` and `other`, we get descended ordering.
111+
/// // If we swap `self` and `other`, we get descending ordering.
112112
/// self.level.cmp(&other.level)
113113
/// }
114114
/// }
@@ -290,7 +290,6 @@ impl<K: Ord, V> TreeMap<K, V> {
290290
}
291291

292292
/// Get a lazy iterator over the key-value pairs in the map, in ascending order.
293-
/// Requires that it be frozen (immutable).
294293
///
295294
/// # Example
296295
///
@@ -316,7 +315,6 @@ impl<K: Ord, V> TreeMap<K, V> {
316315
}
317316

318317
/// Get a lazy reverse iterator over the key-value pairs in the map, in descending order.
319-
/// Requires that it be frozen (immutable).
320318
///
321319
/// # Example
322320
///
@@ -972,7 +970,7 @@ impl<'a, T> Iterator<&'a T> for RevSetItems<'a, T> {
972970
/// // Implement `Ord` and sort trolls by level.
973971
/// impl<'a> Ord for Troll<'a> {
974972
/// fn cmp(&self, other: &Troll) -> Ordering {
975-
/// // If we swap `self` and `other`, we get descended ordering.
973+
/// // If we swap `self` and `other`, we get descending ordering.
976974
/// self.level.cmp(&other.level)
977975
/// }
978976
/// }

0 commit comments

Comments
 (0)