Skip to content

Commit baf2295

Browse files
committed
Also updates rand_isaac dev dependency
1 parent f98c8fe commit baf2295

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ndarray-rand/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rand_distr = { workspace = true }
2121
quickcheck = { workspace = true, optional = true }
2222

2323
[dev-dependencies]
24-
rand_isaac = "0.3.0"
24+
rand_isaac = "0.4.0"
2525
quickcheck = { workspace = true }
2626

2727
[package.metadata.release]

ndarray-rand/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ where
8080
/// use ndarray_rand::rand_distr::Uniform;
8181
///
8282
/// # fn main() {
83-
/// let a = Array::random((2, 5), Uniform::new(0., 10.));
83+
/// let a = Array::random((2, 5), Uniform::new(0., 10.).unwrap());
8484
/// println!("{:8.4}", a);
8585
/// // Example Output:
8686
/// // [[ 8.6900, 6.9824, 3.8922, 6.5861, 2.4890],
@@ -111,7 +111,7 @@ where
111111
/// let mut rng = Isaac64Rng::seed_from_u64(seed);
112112
///
113113
/// // Generate a random array using `rng`
114-
/// let a = Array::random_using((2, 5), Uniform::new(0., 10.), &mut rng);
114+
/// let a = Array::random_using((2, 5), Uniform::new(0., 10.).unwrap(), &mut rng);
115115
/// println!("{:8.4}", a);
116116
/// // Example Output:
117117
/// // [[ 8.6900, 6.9824, 3.8922, 6.5861, 2.4890],

0 commit comments

Comments
 (0)