mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Add clearer wording to Arc clone example code
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
/// // 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
|
||||
|
||||
Reference in New Issue
Block a user