Skip to content

Commit

Permalink
Add suggested changes to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff committed Mar 4, 2022
1 parent 5f34c04 commit b363f13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/iter/traits/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/// collection of some kind.
///
/// If you want to create a collection from the contents of an iterator, the
/// [`Iterator::collect()`] method is preferred. However, the compiler is
/// sometimes unable to infer the full type of the collection. In these cases,
/// [`FromIterator::from_iter()`] can be more concise and readable. See the
/// [`Iterator::collect()`] method is preferred. However, when you need to
/// specify the container type, [`FromIterator::from_iter()`] can be more
/// readable than using a turbofish (e.g. `::<Vec<_>>()`). See the
/// [`Iterator::collect()`] documentation for more examples of its use.
///
/// See also: [`IntoIterator`].
Expand Down

0 comments on commit b363f13

Please sign in to comment.