about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2015-12-19 01:49:36 +0100
committerSebastian Hahn <sebastian@torproject.org>2015-12-19 01:49:36 +0100
commit5b3bdafb9649b8cbaf62535c12dbfee6e9e073be (patch)
treed339d116bf2c4ad1db4732a79c38be229457a8fe /src/liballoc
parent7dd618fd23db19cef9c20711aafb760efd00420f (diff)
downloadrust-5b3bdafb9649b8cbaf62535c12dbfee6e9e073be.tar.gz
rust-5b3bdafb9649b8cbaf62535c12dbfee6e9e073be.zip
Have to use Weak instead of Arc in Weak::new() example
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index b4c3d26ef9f..9b6b74f3b7b 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -922,7 +922,7 @@ impl<T> Weak<T> {
     /// ```
     /// #![feature(downgraded_weak)]
     ///
-    /// use std::sync::Arc;
+    /// use std::sync::Weak;
     ///
     /// let empty: Weak<i64> = Weak::new();
     /// ```