about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2025-06-06 06:39:51 +0200
committerTshepang Mbambo <hopsi@tuta.io>2025-06-06 06:39:51 +0200
commit0ffff4657ac85612195a6ce1144cc21fc48eca4f (patch)
treea1d1c0370992c53e115e18c7d7e3066dee874da8 /library/alloc/src
parentcf423712b9e95e9f6ec84b1ecb3d125e55ac8d56 (diff)
downloadrust-0ffff4657ac85612195a6ce1144cc21fc48eca4f.tar.gz
rust-0ffff4657ac85612195a6ce1144cc21fc48eca4f.zip
remove extraneous text
"Basic usage" implies there is an example that shows advanced usage
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/slice.rs2
-rw-r--r--library/alloc/src/str.rs4
2 files changed, 0 insertions, 6 deletions
diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs
index b49b3f41a76..b4da56578c8 100644
--- a/library/alloc/src/slice.rs
+++ b/library/alloc/src/slice.rs
@@ -493,8 +493,6 @@ impl<T> [T] {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// assert_eq!([1, 2].repeat(3), vec![1, 2, 1, 2, 1, 2]);
     /// ```
diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs
index f1b1734b8b2..22cdd8ecde0 100644
--- a/library/alloc/src/str.rs
+++ b/library/alloc/src/str.rs
@@ -246,8 +246,6 @@ impl str {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// let s = "this is old";
     ///
@@ -303,8 +301,6 @@ impl str {
     ///
     /// # Examples
     ///
-    /// Basic usage:
-    ///
     /// ```
     /// let s = "foo foo 123 foo";
     /// assert_eq!("new new 123 foo", s.replacen("foo", "new", 2));