about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorBart Jacobs <bart.jacobs@cs.kuleuven.be>2025-01-28 21:42:51 +0100
committerGitHub <noreply@github.com>2025-01-28 21:42:51 +0100
commit6763561161dff2419ffe9795ec8bc40671c16e9e (patch)
treeda6d59e87cd4c635fe08b5d271e3314132ce8685 /library/alloc/src
parent77a455303bf08da8eef6236b2b4422a77cd25c42 (diff)
downloadrust-6763561161dff2419ffe9795ec8bc40671c16e9e.tar.gz
rust-6763561161dff2419ffe9795ec8bc40671c16e9e.zip
btree/node.rs: remove incorrect comment from pop_internal_level docs
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/btree/node.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/library/alloc/src/collections/btree/node.rs b/library/alloc/src/collections/btree/node.rs
index 6815ac1c193..2525f5856cd 100644
--- a/library/alloc/src/collections/btree/node.rs
+++ b/library/alloc/src/collections/btree/node.rs
@@ -600,9 +600,6 @@ impl<K, V> NodeRef<marker::Owned, K, V, marker::LeafOrInternal> {
     /// no cleanup is done on any of the keys, values and other children.
     /// This decreases the height by 1 and is the opposite of `push_internal_level`.
     ///
-    /// Requires exclusive access to the `NodeRef` object but not to the root node;
-    /// it will not invalidate other handles or references to the root node.
-    ///
     /// Panics if there is no internal level, i.e., if the root node is a leaf.
     pub(super) fn pop_internal_level<A: Allocator + Clone>(&mut self, alloc: A) {
         assert!(self.height > 0);