From bb3f3ac2ee03843c48f1780e193638b66accf964 Mon Sep 17 00:00:00 2001 From: Wenping Guo Date: Wed, 30 Jan 2019 09:31:10 +0800 Subject: [PATCH 1/2] fix doc for `map_with_location` method --- src/base/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 7a29fe2a..22254fa1 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -393,7 +393,7 @@ impl> Matrix { } /// Returns a matrix containing the result of `f` applied to each of its entries. Unlike `map`, - /// `f` also gets passed the row and column index, i.e. `f(value, row, col)`. + /// `f` also gets passed the row and column index, i.e. `f(row, col, value)`. #[inline] pub fn map_with_location N2>( &self, From b42339ec9453a3091131f1b3fa43e05bf6a323f3 Mon Sep 17 00:00:00 2001 From: Wenping Guo Date: Wed, 30 Jan 2019 15:42:28 +0800 Subject: [PATCH 2/2] fix doc string of `lower_triangle` method --- src/base/edition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/edition.rs b/src/base/edition.rs index 8b6581e8..d1493847 100644 --- a/src/base/edition.rs +++ b/src/base/edition.rs @@ -23,7 +23,7 @@ impl> Matrix { res } - /// Extracts the upper triangular part of this matrix (including the diagonal). + /// Extracts the lower triangular part of this matrix (including the diagonal). #[inline] pub fn lower_triangle(&self) -> MatrixMN where DefaultAllocator: Allocator {