]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/borrow.rs
Remove recommendation about idiomatic syntax for Arc::Clone
[rust.git] / src / liballoc / borrow.rs
index 74c80a08b12ab977bdbdf5f8b33d02dc8a4c5432..d5e15b3719c2e6cb89cb377c7515730ff8e80698 100644 (file)
@@ -32,6 +32,7 @@ fn borrow(&self) -> &B {
 /// from any borrow of a given type.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait ToOwned {
+    /// The resulting type after obtaining ownership.
     #[stable(feature = "rust1", since = "1.0.0")]
     type Owned: Borrow<Self>;
 
@@ -135,7 +136,7 @@ fn clone_into(&self, target: &mut T) {
 /// Another example showing how to keep `Cow` in a struct:
 ///
 /// ```
-/// use std::borrow::{Cow, ToOwned};
+/// use std::borrow::Cow;
 ///
 /// struct Items<'a, X: 'a> where [X]: ToOwned<Owned = Vec<X>> {
 ///     values: Cow<'a, [X]>,