Skip to content

Commit

Permalink
Merge pull request #1113 from trueb2/user/trueb2/fix-unitcomplex-asse…
Browse files Browse the repository at this point in the history
…rtion

Fix UnitComplex cast doctest failure on macOS
  • Loading branch information
sebcrozet authored Jul 30, 2022
2 parents 1e9e1ba + 0cdf3ce commit d0d88f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geometry/unit_complex_construction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ where
///
/// # Example
/// ```
/// #[macro_use] extern crate approx;
/// # use nalgebra::UnitComplex;
/// let c = UnitComplex::new(1.0f64);
/// let c2 = c.cast::<f32>();
/// assert_eq!(c2, UnitComplex::new(1.0f32));
/// assert_relative_eq!(c2, UnitComplex::new(1.0f32));
/// ```
pub fn cast<To: Scalar>(self) -> UnitComplex<To>
where
Expand Down

0 comments on commit d0d88f1

Please sign in to comment.