DOC: Use norm_squared() in its doctest

This commit is contained in:
Matthias Geier 2023-09-30 13:01:11 +02:00
parent f404bcbd6d
commit 87796ace42
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ where
/// ``` /// ```
/// # use nalgebra::Quaternion; /// # use nalgebra::Quaternion;
/// let q = Quaternion::new(1.0, 2.0, 3.0, 4.0); /// let q = Quaternion::new(1.0, 2.0, 3.0, 4.0);
/// assert_eq!(q.magnitude_squared(), 30.0); /// assert_eq!(q.norm_squared(), 30.0);
/// ``` /// ```
#[inline] #[inline]
#[must_use] #[must_use]