Skip to content

Commit 11e9996

Browse files
committed
Fix missed doc updates
1 parent 56899f4 commit 11e9996

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/bevy_math/src/sampling/mesh_sampling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use rand_distr::{Distribution, weighted::{WeightedAliasIndex, Error as WeightedE
1919
/// ```
2020
/// # use bevy_math::{Vec3, primitives::*};
2121
/// # use bevy_math::sampling::mesh_sampling::UniformMeshSampler;
22-
/// # use rand::{SeedableRng, rngs::StdRng, distributions::Distribution};
22+
/// # use rand::{SeedableRng, rngs::StdRng, distr::Distribution};
2323
/// let faces = Tetrahedron::default().faces();
2424
/// let sampler = UniformMeshSampler::try_new(faces).unwrap();
2525
/// let rng = StdRng::seed_from_u64(8765309);

crates/bevy_math/src/sampling/shape_sampling.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! # use bevy_math::{Vec2, ShapeSample};
2424
//! # use rand::SeedableRng;
2525
//! # use rand::rngs::StdRng;
26-
//! # use rand::distributions::Distribution;
26+
//! # use rand::distr::Distribution;
2727
//! # let rng1 = StdRng::from_os_rng();
2828
//! # let rng2 = StdRng::from_os_rng();
2929
//! // Use a rectangle this time:
@@ -86,7 +86,7 @@ pub trait ShapeSample {
8686
///
8787
/// ```
8888
/// # use bevy_math::prelude::*;
89-
/// # use rand::distributions::Distribution;
89+
/// # use rand::distr::Distribution;
9090
/// let square = Rectangle::new(2.0, 2.0);
9191
/// let rng = rand::rng();
9292
///
@@ -108,7 +108,7 @@ pub trait ShapeSample {
108108
///
109109
/// ```
110110
/// # use bevy_math::prelude::*;
111-
/// # use rand::distributions::Distribution;
111+
/// # use rand::distr::Distribution;
112112
/// let square = Rectangle::new(2.0, 2.0);
113113
/// let rng = rand::rng();
114114
///

crates/bevy_math/src/sampling/standard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//!
66
//! For instance:
77
//! ```
8-
//! # use rand::{random, Rng, SeedableRng, rngs::StdRng, distributions::StandardUniform};
8+
//! # use rand::{random, Rng, SeedableRng, rngs::StdRng, distr::StandardUniform};
99
//! # use bevy_math::{Dir3, sampling::FromRng};
1010
//! let mut rng = StdRng::seed_from_u64(7313429298);
1111
//! // Random direction using thread-local rng

0 commit comments

Comments
 (0)