about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-07-18 09:41:35 -0600
committerGitHub <noreply@github.com>2017-07-18 09:41:35 -0600
commit0d004c5141335a7bd11e3633322e9cf53ce8b32b (patch)
tree8302026d4d625e7561b84362dfa3d3a632b404d3
parentb43f58bc25cc86e62680d89829f653d6f1b88903 (diff)
parentde7decc0559e6cab05cfe007f9c53e065b7094d9 (diff)
downloadrust-0d004c5141335a7bd11e3633322e9cf53ce8b32b.tar.gz
rust-0d004c5141335a7bd11e3633322e9cf53ce8b32b.zip
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.
-rw-r--r--src/liballoc/rc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index 306136b21c8..9e72238fbd4 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -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.
 ///