Skip to content

Commit 0e8aed8

Browse files
waywardmonkeysRalith
authored andcommitted
Fix spelling of "construct"
1 parent 2da148c commit 0e8aed8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/geometry/quaternion_construction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ where
880880
// In D. Kirk, editor, Graphics Gems III, pages 124-132. Academic, New York, 1992.
881881
let x0 = rng.sample(OpenClosed01);
882882
let twopi = Uniform::new(T::zero(), T::simd_two_pi())
883-
.expect("Failed to costruct `Uniform`, should be unreachable");
883+
.expect("Failed to construct `Uniform`, should be unreachable");
884884
let theta1 = rng.sample(&twopi);
885885
let theta2 = rng.sample(&twopi);
886886
let s1 = theta1.clone().simd_sin();

src/geometry/rotation_specialization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ where
280280
#[inline]
281281
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Rotation2<T> {
282282
let twopi = Uniform::new(T::zero(), T::simd_two_pi())
283-
.expect("Failed to costruct `Uniform`, should be unreachable");
283+
.expect("Failed to construct `Uniform`, should be unreachable");
284284

285285
Rotation2::new(rng.sample(twopi))
286286
}
@@ -1170,7 +1170,7 @@ where
11701170

11711171
// Compute a random rotation around Z
11721172
let twopi = Uniform::new(T::zero(), T::simd_two_pi())
1173-
.expect("Failed to costruct `Uniform`, should be unreachable");
1173+
.expect("Failed to construct `Uniform`, should be unreachable");
11741174
let theta = rng.sample(&twopi);
11751175
let (ts, tc) = theta.simd_sin_cos();
11761176
let a = SMatrix::<T, 3, 3>::new(

tests/linalg/exp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ mod tests {
5050
};
5151
let mut rng = rng();
5252
let dist = Uniform::new(-10.0, 10.0)
53-
.expect("Failed to costruct `Uniform`, should be unreachable");
53+
.expect("Failed to construct `Uniform`, should be unreachable");
5454
loop {
5555
let a: f64 = dist.sample(&mut rng);
5656
let b: f64 = dist.sample(&mut rng);

0 commit comments

Comments
 (0)