From 479b91901ddab2a3f50c6fd88660695576816c8b Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Tue, 14 Nov 2017 18:23:24 -0600 Subject: examples in Cow::into_owned don't need to wrap result in Cows --- src/liballoc/borrow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/liballoc') 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")] -- cgit 1.4.1-3-g733a5