From d9a9c606029af0ad808c8e5385779a167d554114 Mon Sep 17 00:00:00 2001 From: Koen Deschacht Date: Fri, 30 Aug 2019 09:39:46 +0200 Subject: [PATCH] .min() and .max(): updated examples to be more concise --- src/base/ops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/ops.rs b/src/base/ops.rs index 6f06607f..ef0014c5 100644 --- a/src/base/ops.rs +++ b/src/base/ops.rs @@ -918,7 +918,7 @@ impl> Matrix { /// # use nalgebra::Vector3; /// assert_eq!(Vector3::new(-1.0, 2.0, 3.0).max(), 3.0); /// assert_eq!(Vector3::new(-1.0, -2.0, -3.0).max(), -1.0); - /// assert_eq!(Vector3::::new(5, 2, 3).max(), 5); + /// assert_eq!(Vector3::new(5u32, 2, 3).max(), 5); /// ``` #[inline] pub fn max(&self) -> N @@ -960,7 +960,7 @@ impl> Matrix { /// # use nalgebra::Vector3; /// assert_eq!(Vector3::new(-1.0, 2.0, 3.0).min(), -1.0); /// assert_eq!(Vector3::new(1.0, 2.0, 3.0).min(), 1.0); - /// assert_eq!(Vector3::::new(5, 2, 3).min(), 2); + /// assert_eq!(Vector3::new(5u32, 2, 3).min(), 2); /// ``` #[inline] pub fn min(&self) -> N