Skip to content

Commit

Permalink
Minor style guide corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
denisvasilik committed Nov 11, 2018
1 parent dc0fd65 commit 6f3add3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2214,9 +2214,9 @@ impl From<Box<str>> for String {
/// Basic usage:
///
/// ```
/// let s1 : String = String::from("hello world");
/// let s2 : Box<str> = s1.into_boxed_str();
/// let s3 : String = String::from(s2);
/// let s1: String = String::from("hello world");
/// let s2: Box<str> = s1.into_boxed_str();
/// let s3: String = String::from(s2);
///
/// assert_eq!("hello world", s3)
/// ```
Expand All @@ -2234,9 +2234,9 @@ impl From<String> for Box<str> {
/// Basic usage:
///
/// ```
/// let s1 = String::from("hello world");
/// let s2 : Box<str> = Box::from(s1);
/// let s3 : String = String::from(s2);
/// let s1: String = String::from("hello world");
/// let s2: Box<str> = Box::from(s1);
/// let s3: String = String::from(s2);
///
/// assert_eq!("hello world", s3)
/// ```
Expand Down

0 comments on commit 6f3add3

Please sign in to comment.