Skip to content
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

Iter Docs: Mention 'reduce' and 'inject' #25144

Merged
merged 1 commit into from
May 7, 2015

Conversation

killercup
Copy link
Member

Enhance Google-ability of .fold() by mentioning 'reduce' and 'inject' in the docs.

Motivation: This thread on users.rust-lang.org

@rust-highfive
Copy link
Collaborator

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@killercup
Copy link
Member Author

r? @steveklabnik

@@ -578,6 +578,8 @@ pub trait Iterator {
/// Performs a fold operation over the entire iterator, returning the
/// eventual state at the end of the iteration.
///
/// This operation is sometimes called "reduce" or "inject".
Copy link
Member

Choose a reason for hiding this comment

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

The most minor of nits: can you use single quotes rather than double?

@steveklabnik
Copy link
Member

r=me after my tiny nit, thank you!

@killercup killercup force-pushed the docs/iter-fold-reduce branch from 94153d2 to 1d6285e Compare May 6, 2015 13:51
@killercup
Copy link
Member Author

@steveklabnik: Let there be single quotes!

@alexcrichton
Copy link
Member

@bors: r=steveklabnik 1d6285e rollup

steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 7, 2015
…steveklabnik

Enhance Google-ability of `.fold()` by mentioning 'reduce' and 'inject' in the docs.

Motivation: [This thread on users.rust-lang.org](https://users.rust-lang.org/t/find-the-shortest-string-in-a-vector/1247)
steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 7, 2015
…steveklabnik

Enhance Google-ability of `.fold()` by mentioning 'reduce' and 'inject' in the docs.

Motivation: [This thread on users.rust-lang.org](https://users.rust-lang.org/t/find-the-shortest-string-in-a-vector/1247)
bors added a commit that referenced this pull request May 7, 2015
@bors bors merged commit 1d6285e into rust-lang:master May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants