From 20bb99c3127cc49cdad7677dd68ee143e72190a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 31 Mar 2016 21:30:23 +0200 Subject: [PATCH] Minor documentation fixes. Fix #174. --- src/structs/dmat.rs | 2 +- src/structs/dvec.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index 36b3df4b..b99b25f1 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -108,7 +108,7 @@ impl DMat { } impl DMat { - /// Builds a matrix using an initialization function. + /// Builds a matrix filled with the results of a function applied to each of its component coordinates. #[inline(always)] pub fn from_fn N>(nrows: usize, ncols: usize, mut f: F) -> DMat { DMat { diff --git a/src/structs/dvec.rs b/src/structs/dvec.rs index e40e54aa..bc067e47 100644 --- a/src/structs/dvec.rs +++ b/src/structs/dvec.rs @@ -54,7 +54,7 @@ impl DVec { } impl DVec { - /// Builds a vector filled with the result of a function. + /// Builds a vector filled with the results of a function applied to each of its component coordinates. #[inline(always)] pub fn from_fn N>(dim: usize, mut f: F) -> DVec { DVec { at: (0..dim).map(|i| f(i)).collect() }