Merge pull request #1302 from mgeier/doc-norm_squared

DOC: Use norm_squared() in its doctest
This commit is contained in:
Sébastien Crozet 2023-09-30 17:44:41 +02:00 committed by GitHub
commit 542f6cf437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ where
/// ```
/// # use nalgebra::Quaternion;
/// 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]
#[must_use]