diff options
| author | Roman Proskuryakov <humbug@deeptown.org> | 2018-08-15 14:00:59 +0300 |
|---|---|---|
| committer | Roman Proskuryakov <humbug@deeptown.org> | 2018-08-15 14:00:59 +0300 |
| commit | 9a3a12eaa37b46f4eedd0c93fa61f35e2d748ee8 (patch) | |
| tree | 168cdfaba73eea93d9a41b7181cde29ec2a08126 /src/liballoc | |
| parent | 931eb4c4d5169ebff249387f2049295eb7925c79 (diff) | |
| download | rust-9a3a12eaa37b46f4eedd0c93fa61f35e2d748ee8.tar.gz rust-9a3a12eaa37b46f4eedd0c93fa61f35e2d748ee8.zip | |
Fix review notes
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 |
