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