From 5b3bdafb9649b8cbaf62535c12dbfee6e9e073be Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Sat, 19 Dec 2015 01:49:36 +0100 Subject: [PATCH] Have to use Weak instead of Arc in Weak::new() example --- src/liballoc/arc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 Weak { /// ``` /// #![feature(downgraded_weak)] /// - /// use std::sync::Arc; + /// use std::sync::Weak; /// /// let empty: Weak = Weak::new(); /// ``` -- 2.44.0