about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-07 05:29:12 +0200
committerGitHub <noreply@github.com>2023-08-07 05:29:12 +0200
commitf5df519fe7da5fc62656e9a4c46ed7f6b9742def (patch)
tree8725c6eab4c2582eb83123cffac107bb66e829e6 /library/alloc/src
parent59d2a4b1e586ebd15900ca562bc1c9b7bc55f79e (diff)
parent60e43bcf577c4aeb5fcb1947c8e1c6c1a9c39760 (diff)
Rollup merge of #114365 - tshepang:patch-6, r=Mark-Simulacrum
str.rs: remove "Basic usage" text

Only one example is given
Diffstat (limited to 'library/alloc/src')
-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) };