@@ -101,7 +101,7 @@ pub trait Any: 'static {
101101 ///
102102 /// fn main() {
103103 /// assert_eq!(is_string(&0), false);
104- /// assert_eq!(is_string(&"cookie monster".to_owned ()), true);
104+ /// assert_eq!(is_string(&"cookie monster".to_string ()), true);
105105 /// }
106106 /// ```
107107 #[ unstable( feature = "get_type_id" ,
@@ -154,7 +154,7 @@ impl Any {
154154 ///
155155 /// fn main() {
156156 /// is_string(&0);
157- /// is_string(&"cookie monster".to_owned ());
157+ /// is_string(&"cookie monster".to_string ());
158158 /// }
159159 /// ```
160160 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -188,7 +188,7 @@ impl Any {
188188 ///
189189 /// fn main() {
190190 /// print_if_string(&0);
191- /// print_if_string(&"cookie monster".to_owned ());
191+ /// print_if_string(&"cookie monster".to_string ());
192192 /// }
193193 /// ```
194194 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -219,7 +219,7 @@ impl Any {
219219 ///
220220 /// fn main() {
221221 /// let mut x = 10u32;
222- /// let mut s = "starlord".to_owned ();
222+ /// let mut s = "starlord".to_string ();
223223 ///
224224 /// modify_if_u32(&mut x);
225225 /// modify_if_u32(&mut s);
@@ -259,7 +259,7 @@ impl Any+Send {
259259 ///
260260 /// fn main() {
261261 /// is_string(&0);
262- /// is_string(&"cookie monster".to_owned ());
262+ /// is_string(&"cookie monster".to_string ());
263263 /// }
264264 /// ```
265265 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -285,7 +285,7 @@ impl Any+Send {
285285 ///
286286 /// fn main() {
287287 /// print_if_string(&0);
288- /// print_if_string(&"cookie monster".to_owned ());
288+ /// print_if_string(&"cookie monster".to_string ());
289289 /// }
290290 /// ```
291291 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -309,7 +309,7 @@ impl Any+Send {
309309 ///
310310 /// fn main() {
311311 /// let mut x = 10u32;
312- /// let mut s = "starlord".to_owned ();
312+ /// let mut s = "starlord".to_string ();
313313 ///
314314 /// modify_if_u32(&mut x);
315315 /// modify_if_u32(&mut s);
@@ -359,7 +359,7 @@ impl TypeId {
359359 ///
360360 /// fn main() {
361361 /// assert_eq!(is_string(&0), false);
362- /// assert_eq!(is_string(&"cookie monster".to_owned ()), true);
362+ /// assert_eq!(is_string(&"cookie monster".to_string ()), true);
363363 /// }
364364 /// ```
365365 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments