Fix references in examples

This commit is contained in:
mandeep 2019-10-21 18:32:21 -04:00
parent 6bcf735bf1
commit 2f82b3de6c
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ impl<N: Scalar, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
///
/// 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<N, R, C, S>) -> MatrixMN<N, R, C>
where
@ -69,7 +69,7 @@ impl<N: Scalar, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
///
/// 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<N, R, C, S>) -> MatrixMN<N, R, C>
where