Skip to content

Commit

Permalink
doc: Small rewording.
Browse files Browse the repository at this point in the history
  • Loading branch information
treeman committed Jul 27, 2014
1 parent 53c6391 commit 58d3f10
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/libcollections/treemap.rs
Expand Up @@ -64,12 +64,12 @@ use vec::Vec;
/// 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);
/// }
Expand Down Expand Up @@ -108,7 +108,7 @@ use vec::Vec;
/// // 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)
/// }
/// }
Expand Down Expand Up @@ -290,7 +290,6 @@ impl<K: Ord, V> TreeMap<K, V> {
}

/// Get a lazy iterator over the key-value pairs in the map, in ascending order.
/// Requires that it be frozen (immutable).
///
/// # Example
///
Expand All @@ -316,7 +315,6 @@ impl<K: Ord, V> TreeMap<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
///
Expand Down Expand Up @@ -972,7 +970,7 @@ impl<'a, T> Iterator<&'a T> for RevSetItems<'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)
/// }
/// }
Expand Down

9 comments on commit 58d3f10

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging treeman/rust/doc-treecollection = 58d3f10 into auto

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

treeman/rust/doc-treecollection = 58d3f10 merged ok, testing candidate = 36f6bc0a

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging treeman/rust/doc-treecollection = 58d3f10 into auto

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

treeman/rust/doc-treecollection = 58d3f10 merged ok, testing candidate = 9e25010

@bors
Copy link
Contributor

@bors bors commented on 58d3f10 Jul 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 9e25010

Please sign in to comment.