about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorNick Cameron <nrc@ncameron.org>2019-08-04 21:50:05 +1200
committerNick Cameron <nrc@ncameron.org>2019-08-04 21:50:05 +1200
commit47b16b656376021041110df42e71c551fb2c4881 (patch)
tree8f647f1108bff2309ebe6835f094a3824792c6ab /src/liballoc
parent2c13edcd9d64f640261c488e04459733313f3843 (diff)
downloadrust-47b16b656376021041110df42e71c551fb2c4881.tar.gz
rust-47b16b656376021041110df42e71c551fb2c4881.zip
Remove recommendation about idiomatic syntax for Arc::Clone
Signed-off-by: Nick Cameron <nrc@ncameron.org>
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/sync.rs4
1 files changed, 0 insertions, 4 deletions
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<T>` automatically dereferences to `T` (via the [`Deref`][deref] trait),