about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2023-08-02 12:14:43 +0200
committerGitHub <noreply@github.com>2023-08-02 12:14:43 +0200
commit60e43bcf577c4aeb5fcb1947c8e1c6c1a9c39760 (patch)
tree39739c70d198bf8d2787c867a156f14de65ad845
parent5cbfee545543a8e3d91c54997c6bcd24d2054321 (diff)
downloadrust-60e43bcf577c4aeb5fcb1947c8e1c6c1a9c39760.tar.gz
rust-60e43bcf577c4aeb5fcb1947c8e1c6c1a9c39760.zip
str.rs: remove "Basic usage" text
Only one example is given
-rw-r--r--library/alloc/src/str.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs
index 84977409904..921ce850d1e 100644
--- a/library/alloc/src/str.rs
+++ b/library/alloc/src/str.rs
@@ -223,8 +223,6 @@ impl str {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// let s = "this is a string";
     /// let boxed_str = s.to_owned().into_boxed_str();
@@ -487,8 +485,6 @@ impl str {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// let string = String::from("birthday gift");
     /// let boxed_str = string.clone().into_boxed_str();
@@ -602,8 +598,6 @@ impl str {
 ///
 /// # Examples
 ///
-/// Basic usage:
-///
 /// ```
 /// let smile_utf8 = Box::new([226, 152, 186]);
 /// let smile = unsafe { std::str::from_boxed_utf8_unchecked(smile_utf8) };