Skip to content

Commit

Permalink
btree/node.rs: remove incorrect comment from pop_internal_level docs
Browse files Browse the repository at this point in the history
  • Loading branch information
btj authored and gitbot committed Mar 4, 2025
1 parent 1b4b94a commit 19eb9da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions alloc/src/collections/btree/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19eb9da

Please sign in to comment.