Skip to content

Commit dc0fd65

Browse files
committed
Whitespace cleanup according to Rust's style guidelines.
1 parent f0bfbd3 commit dc0fd65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/string.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2206,7 +2206,7 @@ impl<'a> From<&'a str> for String {
22062206
#[cfg(not(test))]
22072207
#[stable(feature = "string_from_box", since = "1.18.0")]
22082208
impl From<Box<str>> for String {
2209-
/// Converts the given boxed `str` slice to a `String`.
2209+
/// Converts the given boxed `str` slice to a `String`.
22102210
/// It is notable that the `str` slice is owned.
22112211
///
22122212
/// # Examples
@@ -2216,7 +2216,7 @@ impl From<Box<str>> for String {
22162216
/// ```
22172217
/// let s1 : String = String::from("hello world");
22182218
/// let s2 : Box<str> = s1.into_boxed_str();
2219-
/// let s3 : String = String::from(s2);
2219+
/// let s3 : String = String::from(s2);
22202220
///
22212221
/// assert_eq!("hello world", s3)
22222222
/// ```
@@ -2308,7 +2308,7 @@ impl From<String> for Vec<u8> {
23082308
/// ```
23092309
/// let s1 = String::from("hello world");
23102310
/// let v1 = Vec::from(s1);
2311-
///
2311+
///
23122312
/// for b in v1 {
23132313
/// println!("{}", b);
23142314
/// }

0 commit comments

Comments
 (0)