Skip to content

Commit 05e854c

Browse files
johann-cmNil Goyette
authored andcommitted
fix and improve doc-comments
1 parent 4374a9c commit 05e854c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/linspace.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ impl<F> ExactSizeIterator for Linspace<F> where Linspace<F>: Iterator {}
6666
///
6767
/// The `Linspace` has `n` elements from `a` to `b` (inclusive).
6868
///
69-
/// The iterator element type is `F`, where `F` must implement `Float`, e.g.
70-
/// `f32` or `f64`.
69+
/// The iterator element type is `F`, where `F` must implement [`Float`], e.g.
70+
/// [`f32`] or [`f64`].
7171
///
7272
/// **Panics** if converting `n - 1` to type `F` fails.
7373
#[inline]
@@ -89,13 +89,13 @@ where
8989
}
9090
}
9191

92-
/// Return an iterator of floats from `start` to `end` (exclusive),
92+
/// Return an iterator of floats from `a` to `b` (exclusive),
9393
/// incrementing by `step`.
9494
///
9595
/// Numerical reasons can result in `b` being included in the result.
9696
///
97-
/// The iterator element type is `F`, where `F` must implement `Float`, e.g.
98-
/// `f32` or `f64`.
97+
/// The iterator element type is `F`, where `F` must implement [`Float`], e.g.
98+
/// [`f32`] or [`f64`].
9999
///
100100
/// **Panics** if converting `((b - a) / step).ceil()` to type `F` fails.
101101
#[inline]

0 commit comments

Comments
 (0)