From 2f82b3de6ca2fac68dd37435deba1249b495eb4d Mon Sep 17 00:00:00 2001 From: mandeep Date: Mon, 21 Oct 2019 18:32:21 -0400 Subject: [PATCH] Fix references in examples --- src/base/componentwise.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/componentwise.rs b/src/base/componentwise.rs index 98a00eba..2a8ad070 100644 --- a/src/base/componentwise.rs +++ b/src/base/componentwise.rs @@ -50,7 +50,7 @@ impl> Matrix { /// /// let u = Vector3::new(-1.0, 3.0, 2.0); /// let v = Vector3::new(1.0, 2.0, 3.0); - /// assert_eq!(u.component_min(v), Vector3::new(-1.0, 2.0, 3.0)) + /// assert_eq!(u.component_min(&v), Vector3::new(-1.0, 2.0, 3.0)) /// ``` pub fn component_min(&self, rhs: &Matrix) -> MatrixMN where @@ -69,7 +69,7 @@ impl> Matrix { /// /// let u = Vector3::new(-1.0, 3.0, 2.0); /// let v = Vector3::new(1.0, 2.0, 3.0); - /// assert_eq!(u.component_max(v), Vector3::new(1.0, 3.0, 3.0)) + /// assert_eq!(u.component_max(&v), Vector3::new(1.0, 3.0, 3.0)) /// ``` pub fn component_max(&self, rhs: &Matrix) -> MatrixMN where