Add suggested changes to the docs
This commit is contained in:
parent
5f34c04de6
commit
b363f13069
1 changed files with 3 additions and 3 deletions
|
@ -5,9 +5,9 @@
|
||||||
/// collection of some kind.
|
/// collection of some kind.
|
||||||
///
|
///
|
||||||
/// If you want to create a collection from the contents of an iterator, the
|
/// If you want to create a collection from the contents of an iterator, the
|
||||||
/// [`Iterator::collect()`] method is preferred. However, the compiler is
|
/// [`Iterator::collect()`] method is preferred. However, when you need to
|
||||||
/// sometimes unable to infer the full type of the collection. In these cases,
|
/// specify the container type, [`FromIterator::from_iter()`] can be more
|
||||||
/// [`FromIterator::from_iter()`] can be more concise and readable. See the
|
/// readable than using a turbofish (e.g. `::<Vec<_>>()`). See the
|
||||||
/// [`Iterator::collect()`] documentation for more examples of its use.
|
/// [`Iterator::collect()`] documentation for more examples of its use.
|
||||||
///
|
///
|
||||||
/// See also: [`IntoIterator`].
|
/// See also: [`IntoIterator`].
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue