diff options
| author | Denis Vasilik <contact@denisvasilik.com> | 2018-11-11 20:11:25 +0100 |
|---|---|---|
| committer | Denis Vasilik <contact@denisvasilik.com> | 2018-11-11 20:11:25 +0100 |
| commit | 6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe (patch) | |
| tree | 0c3bc8eb9fd629c4ac7bf2840143ca25d2449a11 /src/liballoc | |
| parent | dc0fd65af23bec1de6ae0608c40f0bbcb52d4747 (diff) | |
| download | rust-6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe.tar.gz rust-6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe.zip | |
Minor style guide corrections.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/string.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index e401951694c..2beb3240aac 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -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) /// ``` @@ -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) /// ``` |
