We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbfee5 commit 60e43bcCopy full SHA for 60e43bc
library/alloc/src/str.rs
@@ -223,8 +223,6 @@ impl str {
223
///
224
/// # Examples
225
226
- /// Basic usage:
227
- ///
228
/// ```
229
/// let s = "this is a string";
230
/// let boxed_str = s.to_owned().into_boxed_str();
@@ -487,8 +485,6 @@ impl str {
487
485
488
486
489
490
491
492
493
/// let string = String::from("birthday gift");
494
/// let boxed_str = string.clone().into_boxed_str();
@@ -602,8 +598,6 @@ impl str {
602
598
603
599
604
600
605
-/// Basic usage:
606
-///
607
601
608
/// let smile_utf8 = Box::new([226, 152, 186]);
609
/// let smile = unsafe { std::str::from_boxed_utf8_unchecked(smile_utf8) };
0 commit comments