From 47b16b656376021041110df42e71c551fb2c4881 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Sun, 4 Aug 2019 21:50:05 +1200 Subject: Remove recommendation about idiomatic syntax for Arc::Clone Signed-off-by: Nick Cameron --- src/liballoc/sync.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs index e11873218e8..de8db01ce8b 100644 --- a/src/liballoc/sync.rs +++ b/src/liballoc/sync.rs @@ -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` automatically dereferences to `T` (via the [`Deref`][deref] trait), -- cgit 1.4.1-3-g733a5