Skip to content

Commit 9a3a2a1

Browse files
committed
Clarify what “a container” is in FromIterator<Option<A>> for Option<V> doc.
1 parent c2f4320 commit 9a3a2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/option.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1942,8 +1942,8 @@ unsafe impl<A> TrustedLen for IntoIter<A> {}
19421942
impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
19431943
/// Takes each element in the [`Iterator`]: if it is [`None`][Option::None],
19441944
/// no further elements are taken, and the [`None`][Option::None] is
1945-
/// returned. Should no [`None`][Option::None] occur, a container with the
1946-
/// values of each [`Option`] is returned.
1945+
/// returned. Should no [`None`][Option::None] occur, a container of type
1946+
/// `V` containing the values of each [`Option`] is returned.
19471947
///
19481948
/// # Examples
19491949
///

0 commit comments

Comments
 (0)