]> git.lizzy.rs Git - rust.git/commitdiff
doc: Small rewording.
authorJonas Hietala <tradet.h@gmail.com>
Sun, 27 Jul 2014 17:57:33 +0000 (19:57 +0200)
committerJonas Hietala <tradet.h@gmail.com>
Sun, 27 Jul 2014 18:02:06 +0000 (20:02 +0200)
src/libcollections/treemap.rs

index 5a39a34671aa32303cd09baeea7c7c6a1ca4fd84..5de23b42f5c7d77c4f35e4f9497a18ce9cfe8bda 100644 (file)
 ///     println!("{}: {}", key, value);
 /// }
 ///
-/// // Print 1, 2, 3
+/// // Prints 1, 2, 3
 /// for key in map.keys() {
 ///     println!("{}", key);
 /// }
 ///
-/// // Print `foo`, `bar`, `quux`
+/// // Prints `foo`, `bar`, `quux`
 /// for key in map.values() {
 ///     println!("{}", key);
 /// }
 /// // Implement `Ord` and sort trolls by level.
 /// impl<'a> Ord for Troll<'a> {
 ///     fn cmp(&self, other: &Troll) -> Ordering {
-///         // If we swap `self` and `other`, we get descended ordering.
+///         // If we swap `self` and `other`, we get descending ordering.
 ///         self.level.cmp(&other.level)
 ///     }
 /// }
@@ -290,7 +290,6 @@ pub fn values<'a>(&'a self) -> Values<'a, K, V> {
     }
 
     /// Get a lazy iterator over the key-value pairs in the map, in ascending order.
-    /// Requires that it be frozen (immutable).
     ///
     /// # Example
     ///
@@ -316,7 +315,6 @@ pub fn iter<'a>(&'a self) -> Entries<'a, K, V> {
     }
 
     /// Get a lazy reverse iterator over the key-value pairs in the map, in descending order.
-    /// Requires that it be frozen (immutable).
     ///
     /// # Example
     ///
@@ -972,7 +970,7 @@ fn next(&mut self) -> Option<&'a T> {
 /// // Implement `Ord` and sort trolls by level.
 /// impl<'a> Ord for Troll<'a> {
 ///     fn cmp(&self, other: &Troll) -> Ordering {
-///         // If we swap `self` and `other`, we get descended ordering.
+///         // If we swap `self` and `other`, we get descending ordering.
 ///         self.level.cmp(&other.level)
 ///     }
 /// }