about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-08 11:48:26 +0200
committerGitHub <noreply@github.com>2022-04-08 11:48:26 +0200
commit7b285d09e9e4ccf8273cc03dba28e8a428e6084e (patch)
treef9701e122f296df0e9aa6e99774d9013713d87ee
parentfdfdb336e22476fe20b0ad3270bb598e848577b9 (diff)
parente0e64a89304de2b34dbafbc6cb354d2be9e67835 (diff)
downloadrust-7b285d09e9e4ccf8273cc03dba28e8a428e6084e.tar.gz
rust-7b285d09e9e4ccf8273cc03dba28e8a428e6084e.zip
Rollup merge of #95791 - oconnor663:doc_comment, r=thomcc
hide an #[allow] directive from the Arc::new_cyclic doc example

A minor docs cleanup.
-rw-r--r--library/alloc/src/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs
index f8b4d46ac10..a19999cd725 100644
--- a/library/alloc/src/sync.rs
+++ b/library/alloc/src/sync.rs
@@ -369,7 +369,7 @@ impl<T> Arc<T> {
     ///
     /// # Example
     /// ```
-    /// #![allow(dead_code)]
+    /// # #![allow(dead_code)]
     /// use std::sync::{Arc, Weak};
     ///
     /// struct Gadget {