summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2017-11-14 18:23:24 -0600
committerQuietMisdreavus <grey@quietmisdreavus.net>2017-11-14 18:23:24 -0600
commit479b91901ddab2a3f50c6fd88660695576816c8b (patch)
tree1e31bae28411ce002ddc8a5bc5141d15713c5a58 /src/liballoc
parentff0f5de3b3220e1276bfc9a70ce1787ca7a45388 (diff)
downloadrust-479b91901ddab2a3f50c6fd88660695576816c8b.tar.gz
rust-479b91901ddab2a3f50c6fd88660695576816c8b.zip
examples in Cow::into_owned don't need to wrap result in Cows
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/borrow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/borrow.rs b/src/liballoc/borrow.rs
index e8aff099871..acae0daa86b 100644
--- a/src/liballoc/borrow.rs
+++ b/src/liballoc/borrow.rs
@@ -232,7 +232,7 @@ impl<'a, B: ?Sized> Cow<'a, B>
     ///
     /// assert_eq!(
     ///   cow.into_owned(),
-    ///   Cow::Owned(String::from(s))
+    ///   String::from(s)
     /// );
     /// ```
     ///
@@ -246,7 +246,7 @@ impl<'a, B: ?Sized> Cow<'a, B>
     ///
     /// assert_eq!(
     ///   cow.into_owned(),
-    ///   Cow::Owned(String::from(s))
+    ///   String::from(s)
     /// );
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]