Skip to content

Commit 74b2587

Browse files
committed
For Extend, document collections allowing duplicate keys
1 parent 2467a41 commit 74b2587

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/iter/traits.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ impl<I: Iterator> IntoIterator for I {
261261
/// Iterators produce a series of values, and collections can also be thought
262262
/// of as a series of values. The `Extend` trait bridges this gap, allowing you
263263
/// to extend a collection by including the contents of that iterator. When
264-
/// extending a collection with an already existing key, that entry is updated.
264+
/// extending a collection with an already existing key, that entry is updated
265+
/// or, in the case of collections that permit multiple entries with equal
266+
/// keys, that entry is inserted.
265267
///
266268
/// # Examples
267269
///

0 commit comments

Comments
 (0)