We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6869645 commit 973c2f6Copy full SHA for 973c2f6
src/libcore/cell.rs
@@ -74,6 +74,10 @@
74
//! }
75
//! ```
76
//!
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
+//!
81
//! ## Implementation details of logically-immutable methods
82
83
//! Occasionally it may be desirable not to expose in an API that
0 commit comments