From f3000cf35d20da6fbb2676c333cdd6edbac5463f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Leegwater=20Sim=C3=B5es?= Date: Mon, 29 Jan 2024 15:20:29 +0100 Subject: [PATCH] Remove repetition in docs --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2f76bb8..b31f95b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { assert!(index < Self::N_LEAVES, "Index out of bounds"); @@ -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) {