diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-01-30 14:25:05 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 14:25:05 +1100 |
| commit | 3a2f26f54266f909133fe5f9f8a13f7d889744d7 (patch) | |
| tree | e75c8a4a21cf7db8581eb6304869ee1362c3c0c2 | |
| parent | 6ebe590e4100368afe46b928983f0a2d8a803af2 (diff) | |
| parent | 810e4c1bc62a4801a4c29fe6c975630acbd78370 (diff) | |
Rollup merge of #136215 - btj:patch-1, r=cuviper
btree/node.rs: remove incorrect comment from pop_internal_level docs
| -rw-r--r-- | library/alloc/src/collections/btree/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/btree/node.rs b/library/alloc/src/collections/btree/node.rs index 6815ac1c193..37f784a322c 100644 --- a/library/alloc/src/collections/btree/node.rs +++ b/library/alloc/src/collections/btree/node.rs @@ -600,8 +600,8 @@ 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. + /// Does not invalidate any handles or references pointing into the subtree + /// rooted at the first child of `self`. /// /// 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) { |
