diff options
| author | Otto Rask <ojrask@gmail.com> | 2018-08-31 11:21:01 +0300 |
|---|---|---|
| committer | Otto Rask <ojrask@gmail.com> | 2018-08-31 11:21:01 +0300 |
| commit | bf7e324e4e610b1f12971e601073ccfd6f197fff (patch) | |
| tree | 76c3b0bc092473d09bebf4f2908b23ccd101592d /src/liballoc | |
| parent | 60202199936365e7b2adc70189fbaa664ce729a6 (diff) | |
| download | rust-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.rs | 2 |
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 |
