Skip to content

Commit 002a09a

Browse files
committed
[std][BTree] Update ::append docs
1 parent 084e6e7 commit 002a09a

File tree

1 file changed

+4
-0
lines changed
  • library/alloc/src/collections/btree

1 file changed

+4
-0
lines changed

library/alloc/src/collections/btree/map.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,10 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
11601160
///
11611161
/// If a key from `other` is already present in `self`, the respective
11621162
/// value from `self` will be overwritten with the respective value from `other`.
1163+
/// Similar to [`insert`], though, the key is not overwritten,
1164+
/// which matters for types that can be `==` without being identical.
1165+
///
1166+
/// [`insert`]: BTreeMap::insert
11631167
///
11641168
/// # Examples
11651169
///

0 commit comments

Comments
 (0)