Skip to content

Commit

Permalink
doc: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bluurryy committed Dec 23, 2024
1 parent 83c2959 commit 4355543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bump_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) use slice_initializer::BumpBoxSliceInitializer;
/// [`split_at`](Self::split_at),
/// [`split_first`](Self::split_first),
/// [`split_last`](Self::split_last) and additional methods like
/// [`split_off`](Self::split_off)
/// [`split_off`](Self::split_off),
/// [`partition`](Self::partition) and [`map_in_place`](Self::map_in_place).
/// - `BumpBox<str>` provide methods from `String` like
/// <code>[from_utf8](Self::from_utf8)([_unchecked](Self::from_utf8_unchecked))</code>,
Expand Down Expand Up @@ -565,6 +565,7 @@ impl<'a> BumpBox<'a, str> {
/// ```
#[inline]
#[allow(clippy::return_self_not_must_use)]
// FIXME: compare with drain; allow for any RangeBounds
pub fn split_off(&mut self, range: impl OneSidedRange<usize>) -> Self {
let (direction, mid) = one_sided_range::direction(range, ..self.len());

Expand Down

0 comments on commit 4355543

Please sign in to comment.