Skip to content

Commit

Permalink
[doc] fix doc_cfg feature name of new_vec_zeroed (#750)
Browse files Browse the repository at this point in the history
Fixes: 4433ad3 ("[doc] Use `doc(cfg(...))` in docs.rs (#579)")

Signed-off-by: Changyuan Lyu <[email protected]>
Co-authored-by: Joshua Liebow-Feeser <[email protected]>
  • Loading branch information
Lencerf and joshlf authored Dec 26, 2023
1 parent d5e224d commit e56a42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ pub unsafe trait FromZeros {
/// * Panics if `size_of::<Self>() * len` overflows.
/// * Panics if allocation of `size_of::<Self>() * 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<Self>
where
Expand Down

0 comments on commit e56a42b

Please sign in to comment.