about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorOtto Rask <ojrask@gmail.com>2018-08-31 11:21:01 +0300
committerOtto Rask <ojrask@gmail.com>2018-08-31 11:21:01 +0300
commitbf7e324e4e610b1f12971e601073ccfd6f197fff (patch)
tree76c3b0bc092473d09bebf4f2908b23ccd101592d /src/liballoc
parent60202199936365e7b2adc70189fbaa664ce729a6 (diff)
downloadrust-bf7e324e4e610b1f12971e601073ccfd6f197fff.tar.gz
rust-bf7e324e4e610b1f12971e601073ccfd6f197fff.zip
Add clearer wording to Arc clone example code
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs
index 72a4740b156..db7a4044b26 100644
--- a/src/liballoc/sync.rs
+++ b/src/liballoc/sync.rs
@@ -108,7 +108,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
 /// // The two syntaxes below are equivalent.
 /// let a = foo.clone();
 /// let b = Arc::clone(&foo);
-/// // a and b both point to the same memory location as foo
+/// // a, b, and foo are all Arcs that point to the same memory location
 /// ```
 ///
 /// The [`Arc::clone(&from)`] syntax is the most idiomatic because it conveys more explicitly