diff --git a/src/geometry/rotation_construction.rs b/src/geometry/rotation_construction.rs index 98d0677f..1fc033e4 100644 --- a/src/geometry/rotation_construction.rs +++ b/src/geometry/rotation_construction.rs @@ -16,14 +16,15 @@ where /// # Example /// ``` /// # use nalgebra::{Rotation2, Rotation3}; + /// # use nalgebra::Vector3; /// let rot1 = Rotation2::identity(); - /// let rot2 = Rotation2::new(f32::consts::FRAC_PI_2); + /// let rot2 = Rotation2::new(std::f32::consts::FRAC_PI_2); /// /// assert_eq!(rot1 * rot2, rot2); /// assert_eq!(rot2 * rot1, rot2); /// /// let rot1 = Rotation3::identity(); - /// let rot2 = Rotation3::from_axis_angle(&Vector3::z_axis(), f32::consts::FRAC_PI_2); + /// let rot2 = Rotation3::from_axis_angle(&Vector3::z_axis(), std::f32::consts::FRAC_PI_2); /// /// assert_eq!(rot1 * rot2, rot2); /// assert_eq!(rot2 * rot1, rot2);