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: