Skip to content

Commit

Permalink
Auto merge of #43695 - mehcode:patch-1, r=QuietMisdreavus
Browse files Browse the repository at this point in the history
Preface 'cares' with 'only'

Minor doc edit to make it clear that `collect` _only_ needs the collection type and is not just being caring.
  • Loading branch information
bors committed Aug 7, 2017
2 parents 0188ec6 + bbdff02 commit cbbe17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ pub trait Iterator {
/// assert_eq!(vec![2, 4, 6], doubled);
/// ```
///
/// Because `collect()` cares about what you're collecting into, you can
/// Because `collect()` only cares about what you're collecting into, you can
/// still use a partial type hint, `_`, with the turbofish:
///
/// ```
Expand Down

0 comments on commit cbbe17a

Please sign in to comment.