about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorFabian Drinck <fabian.drinck@rwth-aachen.de>2019-03-17 17:40:25 +0100
committerFabian Drinck <fabian.drinck@rwth-aachen.de>2019-03-30 22:37:02 +0100
commit8fb05491514c5cfb3c3aa03e0266389fa0b29ed0 (patch)
tree47fd9eecf8d8e7a0898bb5ee4e5271a4fc7928cc /src/liballoc
parenta97aeb41d4d342136f52b3cdddc8d59beae606cc (diff)
downloadrust-8fb05491514c5cfb3c3aa03e0266389fa0b29ed0.tar.gz
rust-8fb05491514c5cfb3c3aa03e0266389fa0b29ed0.zip
Fix doc tests
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/borrow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/borrow.rs b/src/liballoc/borrow.rs
index 74c80a08b12..ee1799fad8e 100644
--- a/src/liballoc/borrow.rs
+++ b/src/liballoc/borrow.rs
@@ -135,7 +135,7 @@ impl<T> ToOwned for 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]>,