Skip to content

Commit 47b16b6

Browse files
committed
Remove recommendation about idiomatic syntax for Arc::Clone
Signed-off-by: Nick Cameron <[email protected]>
1 parent 2c13edc commit 47b16b6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/liballoc/sync.rs

-4
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
106106
/// // a, b, and foo are all Arcs that point to the same memory location
107107
/// ```
108108
///
109-
/// The [`Arc::clone(&from)`] syntax is the most idiomatic because it conveys more explicitly
110-
/// the meaning of the code. In the example above, this syntax makes it easier to see that
111-
/// this code is creating a new reference rather than copying the whole content of foo.
112-
///
113109
/// ## `Deref` behavior
114110
///
115111
/// `Arc<T>` automatically dereferences to `T` (via the [`Deref`][deref] trait),

0 commit comments

Comments
 (0)