@@ -101,7 +101,7 @@ pub trait Any: 'static {
101
101
///
102
102
/// fn main() {
103
103
/// 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);
105
105
/// }
106
106
/// ```
107
107
#[ unstable( feature = "get_type_id" ,
@@ -154,7 +154,7 @@ impl Any {
154
154
///
155
155
/// fn main() {
156
156
/// is_string(&0);
157
- /// is_string(&"cookie monster".to_owned ());
157
+ /// is_string(&"cookie monster".to_string ());
158
158
/// }
159
159
/// ```
160
160
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -188,7 +188,7 @@ impl Any {
188
188
///
189
189
/// fn main() {
190
190
/// print_if_string(&0);
191
- /// print_if_string(&"cookie monster".to_owned ());
191
+ /// print_if_string(&"cookie monster".to_string ());
192
192
/// }
193
193
/// ```
194
194
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -219,7 +219,7 @@ impl Any {
219
219
///
220
220
/// fn main() {
221
221
/// let mut x = 10u32;
222
- /// let mut s = "starlord".to_owned ();
222
+ /// let mut s = "starlord".to_string ();
223
223
///
224
224
/// modify_if_u32(&mut x);
225
225
/// modify_if_u32(&mut s);
@@ -259,7 +259,7 @@ impl Any+Send {
259
259
///
260
260
/// fn main() {
261
261
/// is_string(&0);
262
- /// is_string(&"cookie monster".to_owned ());
262
+ /// is_string(&"cookie monster".to_string ());
263
263
/// }
264
264
/// ```
265
265
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -285,7 +285,7 @@ impl Any+Send {
285
285
///
286
286
/// fn main() {
287
287
/// print_if_string(&0);
288
- /// print_if_string(&"cookie monster".to_owned ());
288
+ /// print_if_string(&"cookie monster".to_string ());
289
289
/// }
290
290
/// ```
291
291
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -309,7 +309,7 @@ impl Any+Send {
309
309
///
310
310
/// fn main() {
311
311
/// let mut x = 10u32;
312
- /// let mut s = "starlord".to_owned ();
312
+ /// let mut s = "starlord".to_string ();
313
313
///
314
314
/// modify_if_u32(&mut x);
315
315
/// modify_if_u32(&mut s);
@@ -359,7 +359,7 @@ impl TypeId {
359
359
///
360
360
/// fn main() {
361
361
/// 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);
363
363
/// }
364
364
/// ```
365
365
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
0 commit comments