Skip to content

Commit 60e43bc

Browse files
authored
str.rs: remove "Basic usage" text
Only one example is given
1 parent 5cbfee5 commit 60e43bc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

library/alloc/src/str.rs

-6
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ impl str {
223223
///
224224
/// # Examples
225225
///
226-
/// Basic usage:
227-
///
228226
/// ```
229227
/// let s = "this is a string";
230228
/// let boxed_str = s.to_owned().into_boxed_str();
@@ -487,8 +485,6 @@ impl str {
487485
///
488486
/// # Examples
489487
///
490-
/// Basic usage:
491-
///
492488
/// ```
493489
/// let string = String::from("birthday gift");
494490
/// let boxed_str = string.clone().into_boxed_str();
@@ -602,8 +598,6 @@ impl str {
602598
///
603599
/// # Examples
604600
///
605-
/// Basic usage:
606-
///
607601
/// ```
608602
/// let smile_utf8 = Box::new([226, 152, 186]);
609603
/// let smile = unsafe { std::str::from_boxed_utf8_unchecked(smile_utf8) };

0 commit comments

Comments
 (0)