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 55/// collection of some kind.
66///
77/// 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
1111/// [`Iterator::collect()`] documentation for more examples of its use.
1212///
1313/// See also: [`IntoIterator`].
You can’t perform that action at this time.
0 commit comments