From dc0fd65af23bec1de6ae0608c40f0bbcb52d4747 Mon Sep 17 00:00:00 2001 From: Denis Vasilik Date: Sun, 11 Nov 2018 16:58:00 +0100 Subject: Whitespace cleanup according to Rust's style guidelines. --- src/liballoc/string.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 27a14bd6b8c..e401951694c 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -2206,7 +2206,7 @@ impl<'a> From<&'a str> for String { #[cfg(not(test))] #[stable(feature = "string_from_box", since = "1.18.0")] impl From> for String { - /// Converts the given boxed `str` slice to a `String`. + /// Converts the given boxed `str` slice to a `String`. /// It is notable that the `str` slice is owned. /// /// # Examples @@ -2216,7 +2216,7 @@ impl From> for String { /// ``` /// let s1 : String = String::from("hello world"); /// let s2 : Box = s1.into_boxed_str(); - /// let s3 : String = String::from(s2); + /// let s3 : String = String::from(s2); /// /// assert_eq!("hello world", s3) /// ``` @@ -2308,7 +2308,7 @@ impl From for Vec { /// ``` /// let s1 = String::from("hello world"); /// let v1 = Vec::from(s1); - /// + /// /// for b in v1 { /// println!("{}", b); /// } -- cgit 1.4.1-3-g733a5