diff --git a/src/lib.rs b/src/lib.rs index 1317361d09..94b7362cc2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1616,7 +1616,7 @@ pub unsafe trait FromZeros { /// * Panics if `size_of::() * len` overflows. /// * Panics if allocation of `size_of::() * len` bytes fails. #[cfg(feature = "alloc")] - #[cfg_attr(doc_cfg, doc(cfg(feature = "new_vec_zeroed")))] + #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))] #[inline(always)] fn new_vec_zeroed(len: usize) -> Vec where