diff options
| author | Sebastian Hahn <sebastian@torproject.org> | 2015-12-19 01:49:36 +0100 |
|---|---|---|
| committer | Sebastian Hahn <sebastian@torproject.org> | 2015-12-19 01:49:36 +0100 |
| commit | 5b3bdafb9649b8cbaf62535c12dbfee6e9e073be (patch) | |
| tree | d339d116bf2c4ad1db4732a79c38be229457a8fe /src/liballoc | |
| parent | 7dd618fd23db19cef9c20711aafb760efd00420f (diff) | |
| download | rust-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.rs | 2 |
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(); /// ``` |
