Skip to content

Commit

Permalink
str.rs: remove "Basic usage" text
Browse files Browse the repository at this point in the history
Only one example is given
  • Loading branch information
tshepang authored Aug 2, 2023
1 parent 5cbfee5 commit 60e43bc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions library/alloc/src/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,6 @@ impl str {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// let s = "this is a string";
/// let boxed_str = s.to_owned().into_boxed_str();
Expand Down Expand Up @@ -487,8 +485,6 @@ impl str {
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// let string = String::from("birthday gift");
/// let boxed_str = string.clone().into_boxed_str();
Expand Down Expand Up @@ -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) };
Expand Down

0 comments on commit 60e43bc

Please sign in to comment.