Rollup merge of #43310 - lynn:rc-weak-doc-fix, r=apasel422

Fix erroneous reference to Arc instead of Rc in rc::Weak documentation

The docs for `rc::Weak` refer to `Arc` in one place, where they should obviously be referring to `Rc`; presumably this was erroneously copied over from the `arc::Weak` docs.
This commit is contained in:
Mark Simulacrum 2017-07-18 09:41:35 -06:00 committed by GitHub
commit 0d004c5141
1 changed files with 1 additions and 1 deletions

View File

@ -973,7 +973,7 @@ impl<T> From<T> for Rc<T> {
/// A `Weak` pointer is useful for keeping a temporary reference to the value
/// within [`Rc`] without extending its lifetime. It is also used to prevent
/// circular references between [`Rc`] pointers, since mutual owning references
/// would never allow either [`Arc`] to be dropped. For example, a tree could
/// would never allow either [`Rc`] to be dropped. For example, a tree could
/// have strong [`Rc`] pointers from parent nodes to children, and `Weak`
/// pointers from children back to their parents.
///