Fix examples on stable.

This commit is contained in:
sebcrozet 2018-12-29 15:32:09 +01:00
parent c9351cb818
commit 5569850dbd
2 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,7 @@ impl<N: Real> Rotation2<N> {
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;
/// # extern crate nalgebra;
/// # use nalgebra::Rotation2; /// # use nalgebra::Rotation2;
/// let rot = Rotation2::new(1.78); /// let rot = Rotation2::new(1.78);
/// assert_relative_eq!(rot.angle(), 1.78); /// assert_relative_eq!(rot.angle(), 1.78);
@ -160,6 +161,7 @@ impl<N: Real> Rotation2<N> {
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;
/// # extern crate nalgebra;
/// # use nalgebra::Rotation2; /// # use nalgebra::Rotation2;
/// let rot = Rotation2::new(0.78); /// let rot = Rotation2::new(0.78);
/// let pow = rot.powf(2.0); /// let pow = rot.powf(2.0);

View File

@ -213,6 +213,7 @@ impl<N: Real> UnitComplex<N> {
/// # Example /// # Example
/// ``` /// ```
/// # #[macro_use] extern crate approx; /// # #[macro_use] extern crate approx;
/// # extern crate nalgebra;
/// # use nalgebra::UnitComplex; /// # use nalgebra::UnitComplex;
/// let rot = UnitComplex::new(0.78); /// let rot = UnitComplex::new(0.78);
/// let pow = rot.powf(2.0); /// let pow = rot.powf(2.0);