Skip to content

Commit 2467a41

Browse files
committed
Clarify Extend behaviour wrt existing keys
1 parent 9351c2c commit 2467a41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/iter/traits.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ impl<I: Iterator> IntoIterator for I {
260260
///
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
263-
/// to extend a collection by including the contents of that iterator.
263+
/// 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.
264265
///
265266
/// # Examples
266267
///

0 commit comments

Comments
 (0)