From cb06f26be89d48ef38880b234d91f367ff1475d4 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Mon, 23 Dec 2019 23:41:18 +0100 Subject: [PATCH] Fix doc-test for vector slerp. --- src/base/matrix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 7df3cb3b..5c6693e6 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -1622,10 +1622,10 @@ impl> Unit> { /// # Examples: /// /// ``` - /// # use nalgebra::Vector2; + /// # use nalgebra::{Unit, Vector2}; /// - /// let v1 = Vector2::new(1.0, 2.0); - /// let v2 = Vector2::new(2.0, -3.0); + /// let v1 = Unit::new_normalize(Vector2::new(1.0, 2.0)); + /// let v2 = Unit::new_normalize(Vector2::new(2.0, -3.0)); /// /// let v = v1.slerp(&v2, 1.0); ///