diff --git a/examples/dimensional_genericity.rs b/examples/dimensional_genericity.rs index 1fdd5a5f..e3c4fb5c 100644 --- a/examples/dimensional_genericity.rs +++ b/examples/dimensional_genericity.rs @@ -28,7 +28,7 @@ where } /// Reflects a 3D vector wrt. the 3D plane with normal `plane_normal`. -/// /!\ This is an exact replicate of `reflect_wrt_hyperplane2, but for 3D. +/// /!\ This is an exact replicate of `reflect_wrt_hyperplane2`, but for 3D. fn reflect_wrt_hyperplane3(plane_normal: &Unit>, vector: &Vector3) -> Vector3 where T: RealField, diff --git a/src/base/norm.rs b/src/base/norm.rs index 11f5661f..63d20218 100644 --- a/src/base/norm.rs +++ b/src/base/norm.rs @@ -336,7 +336,7 @@ impl> Matrix { /// Sets the magnitude of this vector unless it is smaller than `min_magnitude`. /// /// If `self.magnitude()` is smaller than `min_magnitude`, it will be left unchanged. - /// Otherwise this is equivalent to: `*self = self.normalize() * magnitude. + /// Otherwise this is equivalent to: `*self = self.normalize() * magnitude`. #[inline] pub fn try_set_magnitude(&mut self, magnitude: T::RealField, min_magnitude: T::RealField) where