From 3cafce659642058f44b08305b115852b1bd1d1e6 Mon Sep 17 00:00:00 2001 From: Richard Bradfield Date: Wed, 3 Feb 2016 22:18:04 +0000 Subject: 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. --- src/liballoc/arc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 424a689bcb0..217d9d7e077 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -380,9 +380,9 @@ impl Deref for Arc { } impl Arc { - /// Make a mutable reference into the given `Arc` by cloning the inner - /// data if the `Arc` doesn't have one strong reference and no weak - /// references. + /// Make a mutable reference into the given `Arc`. + /// If the `Arc` 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. /// -- cgit 1.4.1-3-g733a5