Skip to content

Commit

Permalink
test: fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
bluurryy committed Oct 15, 2024
1 parent 00f2b93 commit 21b5872
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bump_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ impl<'a> BumpBox<'a, str> {
///
/// s.truncate(2);
///
/// assert_eq!("he", s);
/// assert_eq!(s, "he");
/// ```
#[inline]
pub fn truncate(&mut self, new_len: usize) {
Expand Down
2 changes: 1 addition & 1 deletion src/bump_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ where
///
/// s.truncate(2);
///
/// assert_eq!("he", s);
/// assert_eq!(s, "he");
/// ```
#[inline]
pub fn truncate(&mut self, new_len: usize) {
Expand Down
2 changes: 1 addition & 1 deletion src/fixed_bump_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl<'a> FixedBumpString<'a> {
///
/// s.truncate(2);
///
/// assert_eq!("he", s);
/// assert_eq!(s, "he");
/// ```
#[inline]
pub fn truncate(&mut self, new_len: usize) {
Expand Down
2 changes: 1 addition & 1 deletion src/mut_bump_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ impl<'b, 'a: 'b, const MIN_ALIGN: usize, const UP: bool, const GUARANTEED_ALLOCA
///
/// s.truncate(2);
///
/// assert_eq!("he", s);
/// assert_eq!(s, "he");
/// ```
#[inline]
pub fn truncate(&mut self, new_len: usize) {
Expand Down

0 comments on commit 21b5872

Please sign in to comment.