Skip to content

Commit

Permalink
Remove repetition in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ureeves committed Jan 29, 2024
1 parent 051dfe3 commit f3000cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ where
/// element occupying the position, if any.
///
/// # Panics
/// Panics if `index >= capacity`, or the underlying allocator fails if it
/// is the first insertion.
/// If `index >= capacity`, or the underlying allocator fails if it is the
/// first insertion.
pub fn insert(&mut self, index: usize, leaf: T) -> Option<T> {
assert!(index < Self::N_LEAVES, "Index out of bounds");

Expand Down Expand Up @@ -294,7 +294,7 @@ where
/// Ensures that the tree is allocated.
///
/// # Panics
/// Panics if the underlying allocator fails.
/// If the underlying allocator fails.
fn ensure_allocated(&mut self) {
if self.is_unallocated() {
match self.alloc.allocate_zeroed(Self::LAYOUT) {
Expand Down

0 comments on commit f3000cf

Please sign in to comment.