1
Fork 0

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.
This commit is contained in:
Steve Klabnik 2016-06-07 10:43:57 -04:00
commit 05efef7e19

View file

@ -271,7 +271,7 @@ impl<T> Rc<T> {
} }
impl<T: ?Sized> 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 /// # Examples
/// ///