diff options
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/borrow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/borrow.rs b/src/liballoc/borrow.rs index dd4f958804d..95980735f7e 100644 --- a/src/liballoc/borrow.rs +++ b/src/liballoc/borrow.rs @@ -142,6 +142,7 @@ impl<T> ToOwned for T /// abs_all(&mut input); /// ``` /// +/// Another example showing how to keep `Cow` in a struct: /// ``` /// use std::borrow::{Cow, ToOwned}; /// @@ -174,7 +175,6 @@ impl<T> ToOwned for T /// _ => panic!("expect owned data"), /// } /// ``` - #[stable(feature = "rust1", since = "1.0.0")] pub enum Cow<'a, B: ?Sized + 'a> where B: ToOwned |
