Fix unclear make_mut docs

Changed the description of the `make_mut` copy-on-write behaviour in arc.rs

The sentence "doesn't have one strong reference and no weak references." is a
hard to understand double negative, which can be much more easily explained.
This commit is contained in:
Richard Bradfield 2016-02-03 22:18:04 +00:00
parent 8fc73c703a
commit 3cafce6596

View File

@ -380,9 +380,9 @@ impl<T: ?Sized> Deref for Arc<T> {
}
impl<T: Clone> Arc<T> {
/// Make a mutable reference into the given `Arc<T>` by cloning the inner
/// data if the `Arc<T>` doesn't have one strong reference and no weak
/// references.
/// Make a mutable reference into the given `Arc<T>`.
/// If the `Arc<T>` has more than one strong reference, or any weak
/// references, the inner data is cloned.
///
/// This is also referred to as a copy-on-write.
///