Rollup merge of #21472 - steveklabnik:gh21469, r=huonw

Fixes #21469.
This commit is contained in:
Steve Klabnik 2015-01-22 18:09:59 -05:00
commit 0b793ea619
1 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,10 @@
//! }
//! ```
//!
//! Note that this example uses `Rc<T>` and not `Arc<T>`. `RefCell<T>`s are for single-threaded
//! scenarios. Consider using `Mutex<T>` if you need shared mutability in a multi-threaded
//! situation.
//!
//! ## Implementation details of logically-immutable methods
//!
//! Occasionally it may be desirable not to expose in an API that