From 7ee63aced6c3980e7f836881da984a84cb72e9cd Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 28 Dec 2022 10:15:17 +0100 Subject: [PATCH] Mention `Arc` on `Rc` slide Fixes #67. --- src/std/rc.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/std/rc.md b/src/std/rc.md index e565080d..33972485 100644 --- a/src/std/rc.md +++ b/src/std/rc.md @@ -16,7 +16,9 @@ fn main() { ``` If you need to mutate the data inside an `Rc`, you will need to wrap the data in -a type such as [`Cell` or `RefCell`][2]. +a type such as [`Cell` or `RefCell`][2]. See [`Arc`][3] if you are in a multi-threaded +context. [1]: https://doc.rust-lang.org/std/rc/struct.Rc.html [2]: https://doc.rust-lang.org/std/cell/index.html +[3]: ../concurrency/shared_state/arc.md