From 6f3add34ca18cf6fbe5374d3e519b0c8838b1dfe Mon Sep 17 00:00:00 2001 From: Denis Vasilik Date: Sun, 11 Nov 2018 20:11:25 +0100 Subject: Minor style guide corrections. --- src/liballoc/string.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/liballoc') 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> for String { /// Basic usage: /// /// ``` - /// let s1 : String = String::from("hello world"); - /// let s2 : Box = s1.into_boxed_str(); - /// let s3 : String = String::from(s2); + /// let s1: String = String::from("hello world"); + /// let s2: Box = s1.into_boxed_str(); + /// let s3: String = String::from(s2); /// /// assert_eq!("hello world", s3) /// ``` @@ -2234,9 +2234,9 @@ impl From for Box { /// Basic usage: /// /// ``` - /// let s1 = String::from("hello world"); - /// let s2 : Box = Box::from(s1); - /// let s3 : String = String::from(s2); + /// let s1: String = String::from("hello world"); + /// let s2: Box = Box::from(s1); + /// let s3: String = String::from(s2); /// /// assert_eq!("hello world", s3) /// ``` -- cgit 1.4.1-3-g733a5