Skip to content

Commit bf7e324

Browse files
committed
Add clearer wording to Arc clone example code
1 parent 6020219 commit bf7e324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
108108
/// // The two syntaxes below are equivalent.
109109
/// let a = foo.clone();
110110
/// let b = Arc::clone(&foo);
111-
/// // a and b both point to the same memory location as foo
111+
/// // a, b, and foo are all Arcs that point to the same memory location
112112
/// ```
113113
///
114114
/// The [`Arc::clone(&from)`] syntax is the most idiomatic because it conveys more explicitly

0 commit comments

Comments
 (0)