Skip to content

Corrections to the Iterator trait documentation #31819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Feb 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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