Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Aug 17, 2021
1 parent 32343a6 commit 1996707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/distributions/other.rs
Expand Up @@ -40,7 +40,8 @@ use std::mem::{self, MaybeUninit};
/// println!("Random chars: {}", chars);
/// ```
///
/// Alternatively, one can use the [`DistString`] trait:
/// The [`DistString`] trait provides an easier method of generating
/// a random `String`, and offers more efficient allocation:
/// ```
/// use rand::distributions::{Alphanumeric, DistString};
/// let string = Alphanumeric.sample_string(&mut rand::thread_rng(), 16);
Expand Down

0 comments on commit 1996707

Please sign in to comment.