Skip to content

Commit cbbe17a

Browse files
committed
Auto merge of #43695 - mehcode:patch-1, r=QuietMisdreavus
Preface 'cares' with 'only' Minor doc edit to make it clear that `collect` _only_ needs the collection type and is not just being caring.
2 parents 0188ec6 + bbdff02 commit cbbe17a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/iter/iterator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ pub trait Iterator {
12471247
/// assert_eq!(vec![2, 4, 6], doubled);
12481248
/// ```
12491249
///
1250-
/// Because `collect()` cares about what you're collecting into, you can
1250+
/// Because `collect()` only cares about what you're collecting into, you can
12511251
/// still use a partial type hint, `_`, with the turbofish:
12521252
///
12531253
/// ```

0 commit comments

Comments
 (0)