about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorFrank McSherry <fmcsherry@me.com>2016-06-05 20:26:24 +0200
committerFrank McSherry <fmcsherry@me.com>2016-06-05 20:26:24 +0200
commit094f1c4dc61eabee971564e9f4a54604094dc293 (patch)
tree0b521719c96239c420fd2bb470f02f637da0f2c7 /src/liballoc
parent8cbffc5bcfbc4696173678d50d519e9e61676265 (diff)
downloadrust-094f1c4dc61eabee971564e9f4a54604094dc293.tar.gz
rust-094f1c4dc61eabee971564e9f4a54604094dc293.zip
Update rc.rs
The original description suggests that the original `Rc<T>` 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.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs2
1 files changed, 1 insertions, 1 deletions
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<T> Rc<T> {
 }
 
 impl<T: ?Sized> Rc<T> {
-    /// Downgrades the `Rc<T>` to a `Weak<T>` reference.
+    /// Creates a new `Weak<T>` reference from this value.
     ///
     /// # Examples
     ///