From 60e43bcf577c4aeb5fcb1947c8e1c6c1a9c39760 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Wed, 2 Aug 2023 12:14:43 +0200 Subject: [PATCH] str.rs: remove "Basic usage" text Only one example is given --- library/alloc/src/str.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/library/alloc/src/str.rs b/library/alloc/src/str.rs index 8497740990443..921ce850d1eb1 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) };