DOC: Fix compiler warning in the first example in lib.rs.

This commit is contained in:
warren 2023-07-09 09:40:32 -04:00
parent 706caf52c3
commit ec5d2eb4ae
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
```