From 532aa5734658b05c6f1aed0e4798e7b44240fde2 Mon Sep 17 00:00:00 2001 From: bluurryy <164359728+bluurryy@users.noreply.github.com> Date: Wed, 30 Oct 2024 02:29:07 +0100 Subject: [PATCH] doc: fix links --- src/bump_string.rs | 3 +-- src/mut_bump_string.rs | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bump_string.rs b/src/bump_string.rs index 8ecbd34..a5d0248 100644 --- a/src/bump_string.rs +++ b/src/bump_string.rs @@ -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: @@ -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 diff --git a/src/mut_bump_string.rs b/src/mut_bump_string.rs index c61ea4d..7744803 100644 --- a/src/mut_bump_string.rs +++ b/src/mut_bump_string.rs @@ -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 @@ -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: @@ -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