Skip to content

Commit 0d004c5

Browse files
Rollup merge of rust-lang#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.
2 parents b43f58b + de7decc commit 0d004c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/rc.rs

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

0 commit comments

Comments
 (0)