about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorDenis Vasilik <contact@denisvasilik.com>2018-11-11 20:11:25 +0100
committerDenis Vasilik <contact@denisvasilik.com>2018-11-11 20:11:25 +0100
commit6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe (patch)
tree0c3bc8eb9fd629c4ac7bf2840143ca25d2449a11 /src/liballoc
parentdc0fd65af23bec1de6ae0608c40f0bbcb52d4747 (diff)
downloadrust-6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe.tar.gz
rust-6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe.zip
Minor style guide corrections.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs12
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)
     /// ```