Skip to content

Commit

Permalink
Clarify what “a container” is in `FromIterator<Option<A>> for Option<…
Browse files Browse the repository at this point in the history
…V>` doc.
  • Loading branch information
kpreid committed Sep 4, 2021
1 parent c2f4320 commit 9a3a2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1942,8 +1942,8 @@ unsafe impl<A> TrustedLen for IntoIter<A> {}
impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
/// Takes each element in the [`Iterator`]: if it is [`None`][Option::None],
/// no further elements are taken, and the [`None`][Option::None] is
/// returned. Should no [`None`][Option::None] occur, a container with the
/// values of each [`Option`] is returned.
/// returned. Should no [`None`][Option::None] occur, a container of type
/// `V` containing the values of each [`Option`] is returned.
///
/// # Examples
///
Expand Down

0 comments on commit 9a3a2a1

Please sign in to comment.