Clarify what “a container” is in FromIterator<Option<A>> for Option<V>
doc.
This commit is contained in:
parent
c2f432058c
commit
9a3a2a1c37
@ -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
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user