forked from M-Labs/nalgebra
DOC: Fix compiler warning in the first example in lib.rs.
This commit is contained in:
parent
706caf52c3
commit
ec5d2eb4ae
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user