about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorDenis Vasilik <contact@denisvasilik.com>2018-11-11 16:58:00 +0100
committerDenis Vasilik <contact@denisvasilik.com>2018-11-11 16:58:00 +0100
commitdc0fd65af23bec1de6ae0608c40f0bbcb52d4747 (patch)
tree1fbf26de07610445964e0a88d5c40cb35b0a0be5 /src/liballoc
parentf0bfbd3e7201c59b5e155298fc4bdd0acece8992 (diff)
downloadrust-dc0fd65af23bec1de6ae0608c40f0bbcb52d4747.tar.gz
rust-dc0fd65af23bec1de6ae0608c40f0bbcb52d4747.zip
Whitespace cleanup according to Rust's style guidelines.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs6
1 files changed, 3 insertions, 3 deletions
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<Box<str>> 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<Box<str>> for String {
     /// ```
     /// let s1 : String = String::from("hello world");
     /// let s2 : Box<str> = 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<String> for Vec<u8> {
     /// ```
     /// let s1 = String::from("hello world");
     /// let v1 = Vec::from(s1);
-    /// 
+    ///
     /// for b in v1 {
     ///     println!("{}", b);
     /// }