Remove recommendation about idiomatic syntax for Arc::Clone
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
parent
2c13edcd9d
commit
47b16b6563
1 changed files with 0 additions and 4 deletions
|
|
@ -106,10 +106,6 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
|
|||
/// // 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
|
||||
/// the meaning of the code. In the example above, this syntax makes it easier to see that
|
||||
/// this code is creating a new reference rather than copying the whole content of foo.
|
||||
///
|
||||
/// ## `Deref` behavior
|
||||
///
|
||||
/// `Arc<T>` automatically dereferences to `T` (via the [`Deref`][deref] trait),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue