diff options
| author | bors <bors@rust-lang.org> | 2014-05-27 17:46:48 -0700 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-27 17:46:48 -0700 | 
| commit | 911cc9c35234ab12a4b9a6fc1cb35b52556f242d (patch) | |
| tree | f434006eca9cc58dd01c2a033c505d606d2fced2 /src/libstd/slice.rs | |
| parent | 30bf73fd789ad1414284f59b005e85304ff963ad (diff) | |
| parent | c256dcf8b66fb7100e2d735d6640cf76cb2d22f5 (diff) | |
| download | rust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.tar.gz rust-911cc9c35234ab12a4b9a6fc1cb35b52556f242d.zip  | |
auto merge of #14414 : richo/rust/features/nerf_unused_string_fns, r=alexcrichton
This should block on #14323
Diffstat (limited to 'src/libstd/slice.rs')
| -rw-r--r-- | src/libstd/slice.rs | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libstd/slice.rs b/src/libstd/slice.rs index e1242e24537..e5c0cc3babd 100644 --- a/src/libstd/slice.rs +++ b/src/libstd/slice.rs @@ -396,7 +396,7 @@ pub trait OwnedVector<T> { /// # Examples /// /// ```rust - /// let v = ~["a".to_owned(), "b".to_owned()]; + /// let v = ~["a".to_string(), "b".to_string()]; /// for s in v.move_iter() { /// // s has type ~str, not &~str /// println!("{}", s); @@ -1186,7 +1186,7 @@ mod tests { assert_eq!(it.next(), None); } { - let v = ["Hello".to_owned()]; + let v = ["Hello".to_string()]; let mut it = v.permutations(); let (min_size, max_opt) = it.size_hint(); assert_eq!(min_size, 1); @@ -1839,18 +1839,18 @@ mod tests { }) ) let empty: ~[int] = box []; - test_show_vec!(empty, "[]".to_strbuf()); - test_show_vec!(box [1], "[1]".to_strbuf()); - test_show_vec!(box [1, 2, 3], "[1, 2, 3]".to_strbuf()); + test_show_vec!(empty, "[]".to_string()); + test_show_vec!(box [1], "[1]".to_string()); + test_show_vec!(box [1, 2, 3], "[1, 2, 3]".to_string()); test_show_vec!(box [box [], box [1u], box [1u, 1u]], - "[[], [1], [1, 1]]".to_strbuf()); + "[[], [1], [1, 1]]".to_string()); let empty_mut: &mut [int] = &mut[]; - test_show_vec!(empty_mut, "[]".to_strbuf()); - test_show_vec!(&mut[1], "[1]".to_strbuf()); - test_show_vec!(&mut[1, 2, 3], "[1, 2, 3]".to_strbuf()); + test_show_vec!(empty_mut, "[]".to_string()); + test_show_vec!(&mut[1], "[1]".to_string()); + test_show_vec!(&mut[1, 2, 3], "[1, 2, 3]".to_string()); test_show_vec!(&mut[&mut[], &mut[1u], &mut[1u, 1u]], - "[[], [1], [1, 1]]".to_strbuf()); + "[[], [1], [1, 1]]".to_string()); } #[test]  | 
