File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
library/core/src/iter/traits Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
/// collection of some kind.
6
6
///
7
7
/// If you want to create a collection from the contents of an iterator, the
8
- /// [`Iterator::collect()`] method is preferred. However, the compiler is
9
- /// sometimes unable to infer the full type of the collection. In these cases,
10
- /// [`FromIterator::from_iter()`] can be more concise and readable . See the
8
+ /// [`Iterator::collect()`] method is preferred. However, when you need to
9
+ /// specify the container type, [`FromIterator::from_iter()`] can be more
10
+ /// readable than using a turbofish (e.g. `::<Vec<_>>()`) . See the
11
11
/// [`Iterator::collect()`] documentation for more examples of its use.
12
12
///
13
13
/// See also: [`IntoIterator`].
You can’t perform that action at this time.
0 commit comments