mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Preface 'cares' with 'only'
This commit is contained in:
@@ -1247,7 +1247,7 @@ fn by_ref(&mut self) -> &mut Self where Self: Sized { self }
|
||||
/// 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:
|
||||
///
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user