about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Reid <kpreid@google.com>2021-09-04 11:19:59 -0700
committerKevin Reid <kpreid@google.com>2021-09-04 11:30:14 -0700
commit9a3a2a1c3784905eee405becdbd2e5c7ebd5dbce (patch)
tree2e2dcde5a84c5b19a645b876827eec49a06a77d3
parentc2f432058c8dcf3d210ea673d178b3768815f80d (diff)
downloadrust-9a3a2a1c3784905eee405becdbd2e5c7ebd5dbce.tar.gz
rust-9a3a2a1c3784905eee405becdbd2e5c7ebd5dbce.zip
Clarify what “a container” is in `FromIterator<Option<A>> for Option<V>` doc.
-rw-r--r--library/core/src/option.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs
index 64333a82387..907726f0c34 100644
--- a/library/core/src/option.rs
+++ b/library/core/src/option.rs
@@ -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
     ///