Skip to content

Commit 9a3a12e

Browse files
committed
Fix review notes
1 parent 931eb4c commit 9a3a12e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/borrow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ impl<T> ToOwned for T
142142
/// abs_all(&mut input);
143143
/// ```
144144
///
145+
/// Another example showing how to keep `Cow` in a struct:
145146
/// ```
146147
/// use std::borrow::{Cow, ToOwned};
147148
///
@@ -174,7 +175,6 @@ impl<T> ToOwned for T
174175
/// _ => panic!("expect owned data"),
175176
/// }
176177
/// ```
177-
178178
#[stable(feature = "rust1", since = "1.0.0")]
179179
pub enum Cow<'a, B: ?Sized + 'a>
180180
where B: ToOwned

0 commit comments

Comments
 (0)