diff --git a/src/geometry/unit_complex_construction.rs b/src/geometry/unit_complex_construction.rs index ebf4e81d..9536e87f 100644 --- a/src/geometry/unit_complex_construction.rs +++ b/src/geometry/unit_complex_construction.rs @@ -131,10 +131,11 @@ where /// /// # Example /// ``` + /// #[macro_use] extern crate approx; /// # use nalgebra::UnitComplex; /// let c = UnitComplex::new(1.0f64); /// let c2 = c.cast::(); - /// assert_eq!(c2, UnitComplex::new(1.0f32)); + /// assert_relative_eq!(c2, UnitComplex::new(1.0f32)); /// ``` pub fn cast(self) -> UnitComplex where