1
Fork 0

Rollup merge of #95791 - oconnor663:doc_comment, r=thomcc

hide an #[allow] directive from the Arc::new_cyclic doc example

A minor docs cleanup.
This commit is contained in:
Dylan DPC 2022-04-08 11:48:26 +02:00 committed by GitHub
commit 7b285d09e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -369,7 +369,7 @@ impl<T> Arc<T> {
///
/// # Example
/// ```
/// #![allow(dead_code)]
/// # #![allow(dead_code)]
/// use std::sync::{Arc, Weak};
///
/// struct Gadget {