From 0c5cc0b65e88ba44c1f9ef5be0ec9df3ae729a37 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 6 Oct 2018 21:20:57 +0700 Subject: [PATCH] glm docs: Fix broken doc test. --- nalgebra-glm/src/common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nalgebra-glm/src/common.rs b/nalgebra-glm/src/common.rs index e038046c..a796929c 100644 --- a/nalgebra-glm/src/common.rs +++ b/nalgebra-glm/src/common.rs @@ -323,8 +323,8 @@ pub fn round(x: &TVec) -> TVec /// /// ``` /// # use nalgebra_glm as glm; -/// let vec = glm::vec3(-2.0, 0.0, -0.0, 2.0); -/// assert_eq!(glm::vec3(-1.0, 0.0, 0.0, 1.0), glm::sign(&vec)); +/// let vec = glm::vec4(-2.0, 0.0, -0.0, 2.0); +/// assert_eq!(glm::vec4(-1.0, 0.0, 0.0, 1.0), glm::sign(&vec)); /// ``` /// /// # See also: