From 002a09ae9ed008e07c2bccc2fca0779968c07931 Mon Sep 17 00:00:00 2001 From: tinnamchoi Date: Thu, 21 Aug 2025 19:03:07 +0800 Subject: [PATCH] [std][BTree] Update `::append` docs --- library/alloc/src/collections/btree/map.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index c4e599222e50..654859f49823 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -1160,6 +1160,10 @@ pub fn retain(&mut self, mut f: F) /// /// If a key from `other` is already present in `self`, the respective /// value from `self` will be overwritten with the respective value from `other`. + /// Similar to [`insert`], though, the key is not overwritten, + /// which matters for types that can be `==` without being identical. + /// + /// [`insert`]: BTreeMap::insert /// /// # Examples ///