diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-06-07 10:43:57 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-06-07 10:43:57 -0400 |
| commit | 05efef7e193bca0f9fa9fcc347a14164441f436a (patch) | |
| tree | 6491d6a9570326ef7a6249f8d3b1bbf4dfcc9cfc | |
| parent | 31ddf966f54e822f4c513243d65e50424e70debd (diff) | |
| parent | 094f1c4dc61eabee971564e9f4a54604094dc293 (diff) | |
| download | rust-05efef7e193bca0f9fa9fcc347a14164441f436a.tar.gz rust-05efef7e193bca0f9fa9fcc347a14164441f436a.zip | |
Rollup merge of #34098 - frankmcsherry:patch-1, r=alexcrichton
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.
| -rw-r--r-- | src/liballoc/rc.rs | 2 |
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 /// |
