Skip to content

Commit 3a2f26f

Browse files
authored
Rollup merge of rust-lang#136215 - btj:patch-1, r=cuviper
btree/node.rs: remove incorrect comment from pop_internal_level docs
2 parents 6ebe590 + 810e4c1 commit 3a2f26f

File tree

1 file changed

+2
-2
lines changed
  • library/alloc/src/collections/btree

1 file changed

+2
-2
lines changed

Diff for: library/alloc/src/collections/btree/node.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ impl<K, V> NodeRef<marker::Owned, K, V, marker::LeafOrInternal> {
600600
/// no cleanup is done on any of the keys, values and other children.
601601
/// This decreases the height by 1 and is the opposite of `push_internal_level`.
602602
///
603-
/// Requires exclusive access to the `NodeRef` object but not to the root node;
604-
/// it will not invalidate other handles or references to the root node.
603+
/// Does not invalidate any handles or references pointing into the subtree
604+
/// rooted at the first child of `self`.
605605
///
606606
/// Panics if there is no internal level, i.e., if the root node is a leaf.
607607
pub(super) fn pop_internal_level<A: Allocator + Clone>(&mut self, alloc: A) {

0 commit comments

Comments
 (0)