Skip to content

Commit 0b793ea

Browse files
committed
Rollup merge of #21472 - steveklabnik:gh21469, r=huonw
Fixes #21469.
2 parents 07fb31a + 973c2f6 commit 0b793ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/cell.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
//! }
7575
//! ```
7676
//!
77+
//! Note that this example uses `Rc<T>` and not `Arc<T>`. `RefCell<T>`s are for single-threaded
78+
//! scenarios. Consider using `Mutex<T>` if you need shared mutability in a multi-threaded
79+
//! situation.
80+
//!
7781
//! ## Implementation details of logically-immutable methods
7882
//!
7983
//! Occasionally it may be desirable not to expose in an API that

0 commit comments

Comments
 (0)