Skip to content

Commit 5b646ce

Browse files
committed
Fix import for Rust 1.22
1 parent 6db4a61 commit 5b646ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,8 @@ pub trait FromEntropy: SeedableRng {
810810
/// errors, use the following code, equivalent aside from error handling:
811811
///
812812
/// ```rust
813-
/// use rand::{Error, prelude::*};
813+
/// # use rand::Error;
814+
/// use rand::prelude::*;
814815
/// use rand::entropy::EntropyRng;;
815816
///
816817
/// # fn try_inner() -> Result<(), Error> {

0 commit comments

Comments
 (0)