File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2214,9 +2214,9 @@ impl From<Box<str>> for String {
22142214 /// Basic usage:
22152215 ///
22162216 /// ```
2217- /// let s1 : String = String::from("hello world");
2218- /// let s2 : Box<str> = s1.into_boxed_str();
2219- /// let s3 : String = String::from(s2);
2217+ /// let s1: String = String::from("hello world");
2218+ /// let s2: Box<str> = s1.into_boxed_str();
2219+ /// let s3: String = String::from(s2);
22202220 ///
22212221 /// assert_eq!("hello world", s3)
22222222 /// ```
@@ -2234,9 +2234,9 @@ impl From<String> for Box<str> {
22342234 /// Basic usage:
22352235 ///
22362236 /// ```
2237- /// let s1 = String::from("hello world");
2238- /// let s2 : Box<str> = Box::from(s1);
2239- /// let s3 : String = String::from(s2);
2237+ /// let s1: String = String::from("hello world");
2238+ /// let s2: Box<str> = Box::from(s1);
2239+ /// let s3: String = String::from(s2);
22402240 ///
22412241 /// assert_eq!("hello world", s3)
22422242 /// ```
You can’t perform that action at this time.
0 commit comments