diff --git a/src/liballoc/borrow.rs b/src/liballoc/borrow.rs index e8aff09987157..acae0daa86b6b 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")]