We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FromIterator<Option<A>> for Option<V>
1 parent c2f4320 commit 9a3a2a1Copy full SHA for 9a3a2a1
library/core/src/option.rs
@@ -1942,8 +1942,8 @@ unsafe impl<A> TrustedLen for IntoIter<A> {}
1942
impl<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
1943
/// Takes each element in the [`Iterator`]: if it is [`None`][Option::None],
1944
/// 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.
+ /// returned. Should no [`None`][Option::None] occur, a container of type
+ /// `V` containing the values of each [`Option`] is returned.
1947
///
1948
/// # Examples
1949
0 commit comments