From 094f1c4dc61eabee971564e9f4a54604094dc293 Mon Sep 17 00:00:00 2001 From: Frank McSherry Date: Sun, 5 Jun 2016 20:26:24 +0200 Subject: [PATCH] Update rc.rs The original description suggests that the original `Rc` itself is downgraded, which doesn't seem to be what the code does. At the same time, `Rc` is one of those types that can do weird things with only a shared reference, so I thought it would be good to be clear. --- src/liballoc/rc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index cf4fb459bc1..a873be455d5 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -271,7 +271,7 @@ impl Rc { } impl Rc { - /// Downgrades the `Rc` to a `Weak` reference. + /// Creates a new `Weak` reference from this value. /// /// # Examples ///