Skip to content

Commit

Permalink
Auto merge of #31819 - miqid:doc, r=steveklabnik
Browse files Browse the repository at this point in the history
Hello.

I came across some minor spelling mistakes while going through the documentation for the `Iterator` trait. Also includes a suggested styling fix.

r? @steveklabnik
  • Loading branch information
bors committed Feb 22, 2016
2 parents 98a59cf + 4d2a816 commit d1f422e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/libcore/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ pub trait Iterator {
/// assert_eq!(6, doubled[2]);
/// ```
///
/// Using the 'turbofish' instead of annotationg `doubled`:
/// Using the 'turbofish' instead of annotating `doubled`:
///
/// ```
/// let a = [1, 2, 3];
Expand Down Expand Up @@ -1610,7 +1610,7 @@ pub trait Iterator {
/// `true`, then so does `all()`. If any of them return `false`, it
/// returns `false`.
///
/// `all()` is short-circuting; in other words, it will stop processing
/// `all()` is short-circuiting; in other words, it will stop processing
/// as soon as it finds a `false`, given that no matter what else happens,
/// the result will also be `false`.
///
Expand Down Expand Up @@ -1660,7 +1660,7 @@ pub trait Iterator {
/// `true`, then so does `any()`. If they all return `false`, it
/// returns `false`.
///
/// `any()` is short-circuting; in other words, it will stop processing
/// `any()` is short-circuiting; in other words, it will stop processing
/// as soon as it finds a `true`, given that no matter what else happens,
/// the result will also be `true`.
///
Expand Down Expand Up @@ -1711,7 +1711,7 @@ pub trait Iterator {
/// `true`, then `find()` returns `Some(element)`. If they all return
/// `false`, it returns `None`.
///
/// `find()` is short-circuting; in other words, it will stop processing
/// `find()` is short-circuiting; in other words, it will stop processing
/// as soon as the closure returns `true`.
///
/// Because `find()` takes a reference, and many iterators iterate over
Expand Down Expand Up @@ -1762,7 +1762,7 @@ pub trait Iterator {
/// returns `true`, then `position()` returns `Some(index)`. If all of
/// them return `false`, it returns `None`.
///
/// `position()` is short-circuting; in other words, it will stop
/// `position()` is short-circuiting; in other words, it will stop
/// processing as soon as it finds a `true`.
///
/// # Overflow Behavior
Expand Down Expand Up @@ -1824,7 +1824,7 @@ pub trait Iterator {
/// and if one of them returns `true`, then `rposition()` returns
/// `Some(index)`. If all of them return `false`, it returns `None`.
///
/// `rposition()` is short-circuting; in other words, it will stop
/// `rposition()` is short-circuiting; in other words, it will stop
/// processing as soon as it finds a `true`.
///
/// # Examples
Expand Down Expand Up @@ -2079,7 +2079,7 @@ pub trait Iterator {
(ts, us)
}

/// Creates an iterator which clone()s all of its elements.
/// Creates an iterator which `clone()`s all of its elements.
///
/// This is useful when you have an iterator over `&T`, but you need an
/// iterator over `T`.
Expand Down

0 comments on commit d1f422e

Please sign in to comment.