Skip to content

Commit

Permalink
doc: fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
bluurryy committed Oct 30, 2024
1 parent 5cc5367 commit 532aa57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/bump_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ where
/// of this function, [`from_utf8_unchecked`], which has the same behavior
/// but skips the checks.
///
/// [`from_utf8_unchecked`]: String::from_utf8_unchecked
/// [`from_utf8_unchecked`]: Self::from_utf8_unchecked
impl
do examples
/// Basic usage:
Expand Down Expand Up @@ -391,7 +391,6 @@ where
/// Decode a UTF-16–encoded slice `v` into a `BumpString`, replacing
/// invalid data with [the replacement character (`U+FFFD`)][U+FFFD].
///
/// [`from_utf8_lossy_in`]: Self::from_utf8_lossy_in
/// [U+FFFD]: core::char::REPLACEMENT_CHARACTER
impl
do examples
Expand Down
5 changes: 2 additions & 3 deletions src/mut_bump_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ where
Ok(this)
}

/// Converts a slice of bytes to a string, including invalid characters.
/// Converts a slice of bytes to a string, including invalid characters.
///
/// Strings are made of bytes ([`u8`]), and a slice of bytes
/// ([`&[u8]`][byteslice]) is made of bytes, so this function converts
Expand All @@ -245,7 +245,7 @@ where
/// of this function, [`from_utf8_unchecked`], which has the same behavior
/// but skips the checks.
///
/// [`from_utf8_unchecked`]: String::from_utf8_unchecked
/// [`from_utf8_unchecked`]: Self::from_utf8_unchecked
impl
do examples
/// Basic usage:
Expand Down Expand Up @@ -392,7 +392,6 @@ where
/// Decode a UTF-16–encoded slice `v` into a `MutBumpString`, replacing
/// invalid data with [the replacement character (`U+FFFD`)][U+FFFD].
///
/// [`from_utf8_lossy_in`]: Self::from_utf8_lossy_in
/// [U+FFFD]: core::char::REPLACEMENT_CHARACTER
impl
do examples
Expand Down

0 comments on commit 532aa57

Please sign in to comment.