From 87796ace423abddbaade5d35bb878bb7561caa1d Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 30 Sep 2023 13:01:11 +0200 Subject: [PATCH] DOC: Use norm_squared() in its doctest --- src/geometry/quaternion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry/quaternion.rs b/src/geometry/quaternion.rs index 9a4546bb..18c6a80d 100644 --- a/src/geometry/quaternion.rs +++ b/src/geometry/quaternion.rs @@ -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]