From ec5d2eb4ae917d3fbb00675b0c00efa3b135e3bb Mon Sep 17 00:00:00 2001 From: warren Date: Sun, 9 Jul 2023 09:40:32 -0400 Subject: [PATCH] DOC: Fix compiler warning in the first example in lib.rs. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } ```