mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 09:57:43 +00:00
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.
This commit is contained in:
commit
cbbe17aa7f
@ -1247,7 +1247,7 @@ pub trait Iterator {
|
|||||||
/// assert_eq!(vec![2, 4, 6], doubled);
|
/// 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:
|
/// still use a partial type hint, `_`, with the turbofish:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user