diff --git a/src/lib.rs b/src/lib.rs index 3410229..cc7bc94 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,7 +44,7 @@ //! fastrand::shuffle(&mut v); //! ``` //! -//! Generate a random [`Vec`] or [`String`]: +//! Generate a random [`Vec`] or [`String`](alloc::string::String): //! //! ``` //! use std::iter::repeat_with; @@ -121,7 +121,6 @@ use core::ops::{Bound, RangeBounds}; use alloc::vec::Vec; #[cfg(feature = "std")] -#[cfg_attr(docsrs, doc(cfg(feature = "std")))] mod global_rng; #[cfg(feature = "std")] @@ -435,7 +434,6 @@ impl Rng { /// /// Complexity is `O(n)` where `n` is the length of the iterable. #[cfg(feature = "alloc")] - #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] pub fn choose_multiple(&mut self, source: I, amount: usize) -> Vec { // Adapted from: https://docs.rs/rand/latest/rand/seq/trait.IteratorRandom.html#method.choose_multiple let mut reservoir = Vec::with_capacity(amount);