Skip to content

Commit 6f3add3

Browse files
committed
Minor style guide corrections.
1 parent dc0fd65 commit 6f3add3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/liballoc/string.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2214,9 +2214,9 @@ impl From<Box<str>> for String {
22142214
/// Basic usage:
22152215
///
22162216
/// ```
2217-
/// let s1 : String = String::from("hello world");
2218-
/// let s2 : Box<str> = s1.into_boxed_str();
2219-
/// let s3 : String = String::from(s2);
2217+
/// let s1: String = String::from("hello world");
2218+
/// let s2: Box<str> = s1.into_boxed_str();
2219+
/// let s3: String = String::from(s2);
22202220
///
22212221
/// assert_eq!("hello world", s3)
22222222
/// ```
@@ -2234,9 +2234,9 @@ impl From<String> for Box<str> {
22342234
/// Basic usage:
22352235
///
22362236
/// ```
2237-
/// let s1 = String::from("hello world");
2238-
/// let s2 : Box<str> = Box::from(s1);
2239-
/// let s3 : String = String::from(s2);
2237+
/// let s1: String = String::from("hello world");
2238+
/// let s2: Box<str> = Box::from(s1);
2239+
/// let s3: String = String::from(s2);
22402240
///
22412241
/// assert_eq!("hello world", s3)
22422242
/// ```

0 commit comments

Comments
 (0)