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:
commit
05efef7e19
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue