diff --git a/src/lib.rs b/src/lib.rs index 93f05ff5..e666e6b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ explicitly, and call free-functions using the `na::` prefix: ``` #[macro_use] -extern crate approx; // For the macro relative_eq! +extern crate approx; // For the macro assert_relative_eq! extern crate nalgebra as na; use na::{Vector3, Rotation3}; @@ -36,8 +36,8 @@ fn main() { let angle = 1.57; let b = Rotation3::from_axis_angle(&axis, angle); - relative_eq!(b.axis().unwrap(), axis); - relative_eq!(b.angle(), angle); + assert_relative_eq!(b.axis().unwrap(), axis); + assert_relative_eq!(b.angle(), angle); } ```