Skip to content

Commit

Permalink
examples in Cow::into_owned don't need to wrap result in Cows
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Nov 15, 2017
1 parent ff0f5de commit 479b919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liballoc/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl<'a, B: ?Sized> Cow<'a, B>
///
/// assert_eq!(
/// cow.into_owned(),
/// Cow::Owned(String::from(s))
/// String::from(s)
/// );
/// ```
///
Expand All @@ -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")]
Expand Down

0 comments on commit 479b919

Please sign in to comment.