about summary refs log tree commit diff
path: root/src/libstd/slice.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2014-05-25 03:10:11 -0700
committerRicho Healey <richo@psych0tik.net>2014-05-27 11:11:15 -0700
commit4348e23b269739657d934b532ad061bfd6d92309 (patch)
tree4dece24751feb7145444c52fd05a1c5f7ca2de9d /src/libstd/slice.rs
parentc7fe4ffe3d8315dfe98bee6d040b5a0381daab91 (diff)
downloadrust-4348e23b269739657d934b532ad061bfd6d92309.tar.gz
rust-4348e23b269739657d934b532ad061bfd6d92309.zip
std: Remove String's to_owned
Diffstat (limited to 'src/libstd/slice.rs')
-rw-r--r--src/libstd/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/slice.rs b/src/libstd/slice.rs
index e1242e24537..ca75f33f0fe 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);