Skip to content

Commit ed9d9cc

Browse files
clippy: Fix clippy::doc_lazy_continuation lints (#1427)
1 parent 6de97b6 commit ed9d9cc

13 files changed

+44
-45
lines changed

src/base/edition.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl<T, R: Dim, C: Dim, S: RawStorageMut<T, R, C>> Matrix<T, R, C, S> {
236236
/// * If `shift = 0` then the diagonal is overwritten as well.
237237
/// * If `shift = 1` then the diagonal is left untouched.
238238
/// * If `shift > 1`, then the diagonal and the first `shift - 1` subdiagonals are left
239-
/// untouched.
239+
/// untouched.
240240
#[inline]
241241
pub fn fill_lower_triangle(&mut self, val: T, shift: usize)
242242
where
@@ -255,7 +255,7 @@ impl<T, R: Dim, C: Dim, S: RawStorageMut<T, R, C>> Matrix<T, R, C, S> {
255255
/// * If `shift = 0` then the diagonal is overwritten as well.
256256
/// * If `shift = 1` then the diagonal is left untouched.
257257
/// * If `shift > 1`, then the diagonal and the first `shift - 1` superdiagonals are left
258-
/// untouched.
258+
/// untouched.
259259
#[inline]
260260
pub fn fill_upper_triangle(&mut self, val: T, shift: usize)
261261
where

src/base/matrix.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,18 @@ pub type MatrixCross<T, R1, C1, R2, C2> =
140140
/// - `R`: for the matrix number of rows.
141141
/// - `C`: for the matrix number of columns.
142142
/// - `S`: for the matrix data storage, i.e., the buffer that actually contains the matrix
143-
/// components.
143+
/// components.
144144
///
145145
/// The matrix dimensions parameters `R` and `C` can either be:
146146
/// - type-level unsigned integer constants (e.g. `U1`, `U124`) from the `nalgebra::` root module.
147-
/// All numbers from 0 to 127 are defined that way.
147+
/// All numbers from 0 to 127 are defined that way.
148148
/// - type-level unsigned integer constants (e.g. `U1024`, `U10000`) from the `typenum::` crate.
149-
/// Using those, you will not get error messages as nice as for numbers smaller than 128 defined on
150-
/// the `nalgebra::` module.
149+
/// Using those, you will not get error messages as nice as for numbers smaller than 128 defined on
150+
/// the `nalgebra::` module.
151151
/// - the special value `Dyn` from the `nalgebra::` root module. This indicates that the
152-
/// specified dimension is not known at compile-time. Note that this will generally imply that the
153-
/// matrix data storage `S` performs a dynamic allocation and contains extra metadata for the
154-
/// matrix shape.
152+
/// specified dimension is not known at compile-time. Note that this will generally imply that the
153+
/// matrix data storage `S` performs a dynamic allocation and contains extra metadata for the
154+
/// matrix shape.
155155
///
156156
/// Note that mixing `Dyn` with type-level unsigned integers is allowed. Actually, a
157157
/// dynamically-sized column vector should be represented as a `Matrix<T, Dyn, U1, S>` (given
@@ -778,9 +778,9 @@ impl<T, R: Dim, C: Dim, S: RawStorage<T, R, C>> Matrix<T, R, C, S> {
778778
///
779779
/// The initialization closure is given the first component of this matrix:
780780
/// - If the matrix has no component (0 rows or 0 columns) then `init_f` is called with `None`
781-
/// and its return value is the value returned by this method.
781+
/// and its return value is the value returned by this method.
782782
/// - If the matrix has has least one component, then `init_f` is called with the first component
783-
/// to compute the initial value. Folding then continues on all the remaining components of the matrix.
783+
/// to compute the initial value. Folding then continues on all the remaining components of the matrix.
784784
#[inline]
785785
#[must_use]
786786
pub fn fold_with<T2>(

src/geometry/dual_quaternion.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,7 @@ where
656656
/// * `other`: the second quaternion to interpolate toward.
657657
/// * `t`: the interpolation parameter. Should be between 0 and 1.
658658
/// * `epsilon`: the value below which the sinus of the angle separating
659-
/// both quaternion
660-
/// must be to return `None`.
659+
/// both quaternion must be to return `None`.
661660
#[inline]
662661
#[must_use]
663662
pub fn try_sclerp(&self, other: &Self, t: T, epsilon: T) -> Option<Self>

src/geometry/isometry_construction.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ macro_rules! look_at_isometry_construction_impl(
285285
/// * eye - The observer position.
286286
/// * target - The target position.
287287
/// * up - Vertical direction. The only requirement of this parameter is to not be collinear
288-
/// to `eye - at`. Non-collinearity is not checked.
288+
/// to `eye - at`. Non-collinearity is not checked.
289289
///
290290
/// # Example
291291
///
@@ -336,7 +336,7 @@ macro_rules! look_at_isometry_construction_impl(
336336
/// * eye - The eye position.
337337
/// * target - The target position.
338338
/// * up - A vector approximately aligned with required the vertical axis. The only
339-
/// requirement of this parameter is to not be collinear to `target - eye`.
339+
/// requirement of this parameter is to not be collinear to `target - eye`.
340340
///
341341
/// # Example
342342
///
@@ -379,7 +379,7 @@ macro_rules! look_at_isometry_construction_impl(
379379
/// * eye - The eye position.
380380
/// * target - The target position.
381381
/// * up - A vector approximately aligned with required the vertical axis. The only
382-
/// requirement of this parameter is to not be collinear to `target - eye`.
382+
/// requirement of this parameter is to not be collinear to `target - eye`.
383383
///
384384
/// # Example
385385
///

src/geometry/quaternion.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ where
12271227
/// * `other`: the second quaternion to interpolate toward.
12281228
/// * `t`: the interpolation parameter. Should be between 0 and 1.
12291229
/// * `epsilon`: the value below which the sinus of the angle separating both quaternion
1230-
/// must be to return `None`.
1230+
/// must be to return `None`.
12311231
#[inline]
12321232
#[must_use]
12331233
pub fn try_slerp(&self, other: &Self, t: T, epsilon: T) -> Option<Self>

src/geometry/quaternion_construction.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ where
582582
/// # Arguments
583583
/// * dir - The look direction. It does not need to be normalized.
584584
/// * up - The vertical direction. It does not need to be normalized.
585-
/// The only requirement of this parameter is to not be collinear to `dir`. Non-collinearity
586-
/// is not checked.
585+
/// The only requirement of this parameter is to not be collinear to `dir`. Non-collinearity
586+
/// is not checked.
587587
///
588588
/// # Example
589589
/// ```
@@ -624,7 +624,7 @@ where
624624
/// # Arguments
625625
/// * dir − The view direction. It does not need to be normalized.
626626
/// * up - A vector approximately aligned with required the vertical axis. It does not need
627-
/// to be normalized. The only requirement of this parameter is to not be collinear to `dir`.
627+
/// to be normalized. The only requirement of this parameter is to not be collinear to `dir`.
628628
///
629629
/// # Example
630630
/// ```
@@ -655,7 +655,7 @@ where
655655
/// # Arguments
656656
/// * dir − The view direction. It does not need to be normalized.
657657
/// * up - A vector approximately aligned with required the vertical axis. The only
658-
/// requirement of this parameter is to not be collinear to `dir`.
658+
/// requirement of this parameter is to not be collinear to `dir`.
659659
///
660660
/// # Example
661661
/// ```

src/geometry/rotation_interpolation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl<T: SimdRealField> Rotation3<T> {
6767
/// * `other`: the second rotation to interpolate toward.
6868
/// * `t`: the interpolation parameter. Should be between 0 and 1.
6969
/// * `epsilon`: the value below which the sinus of the angle separating both rotations
70-
/// must be to return `None`.
70+
/// must be to return `None`.
7171
#[inline]
7272
#[must_use]
7373
pub fn try_slerp(&self, other: &Self, t: T, epsilon: T) -> Option<Self>

src/geometry/rotation_specialization.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ where
310310
///
311311
/// # Arguments
312312
/// * `axisangle` - A vector representing the rotation. Its magnitude is the amount of rotation
313-
/// in radian. Its direction is the axis of rotation.
313+
/// in radian. Its direction is the axis of rotation.
314314
///
315315
/// # Example
316316
/// ```
@@ -459,7 +459,7 @@ where
459459
/// # Arguments
460460
/// * dir - The look direction, that is, direction the matrix `z` axis will be aligned with.
461461
/// * up - The vertical direction. The only requirement of this parameter is to not be
462-
/// collinear to `dir`. Non-collinearity is not checked.
462+
/// collinear to `dir`. Non-collinearity is not checked.
463463
///
464464
/// # Example
465465
/// ```
@@ -515,7 +515,7 @@ where
515515
/// # Arguments
516516
/// * dir - The direction toward which the camera looks.
517517
/// * up - A vector approximately aligned with required the vertical axis. The only
518-
/// requirement of this parameter is to not be collinear to `dir`.
518+
/// requirement of this parameter is to not be collinear to `dir`.
519519
///
520520
/// # Example
521521
/// ```
@@ -546,7 +546,7 @@ where
546546
/// # Arguments
547547
/// * dir - The direction toward which the camera looks.
548548
/// * up - A vector approximately aligned with required the vertical axis. The only
549-
/// requirement of this parameter is to not be collinear to `dir`.
549+
/// requirement of this parameter is to not be collinear to `dir`.
550550
///
551551
/// # Example
552552
/// ```

src/geometry/similarity_construction.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ macro_rules! similarity_construction_impl(
280280
/// * eye - The observer position.
281281
/// * target - The target position.
282282
/// * up - Vertical direction. The only requirement of this parameter is to not be collinear
283-
/// to `eye - at`. Non-collinearity is not checked.
283+
/// to `eye - at`. Non-collinearity is not checked.
284284
///
285285
/// # Example
286286
/// ```
@@ -329,7 +329,7 @@ macro_rules! similarity_construction_impl(
329329
/// * eye - The eye position.
330330
/// * target - The target position.
331331
/// * up - A vector approximately aligned with required the vertical axis. The only
332-
/// requirement of this parameter is to not be collinear to `target - eye`.
332+
/// requirement of this parameter is to not be collinear to `target - eye`.
333333
///
334334
/// # Example
335335
/// ```
@@ -366,7 +366,7 @@ macro_rules! similarity_construction_impl(
366366
/// * eye - The eye position.
367367
/// * target - The target position.
368368
/// * up - A vector approximately aligned with required the vertical axis. The only
369-
/// requirement of this parameter is to not be collinear to `target - eye`.
369+
/// requirement of this parameter is to not be collinear to `target - eye`.
370370
///
371371
/// # Example
372372
/// ```

src/linalg/decomposition.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ impl<T: ComplexField, R: Dim, C: Dim, S: Storage<T, R, C>> Matrix<T, R, C, S> {
120120
/// * `compute_v` − set this to `true` to enable the computation of right-singular vectors.
121121
/// * `eps` − tolerance used to determine when a value converged to 0.
122122
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
123-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
124-
/// continues indefinitely until convergence.
123+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
124+
/// continues indefinitely until convergence.
125125
pub fn try_svd(
126126
self,
127127
compute_u: bool,
@@ -153,8 +153,8 @@ impl<T: ComplexField, R: Dim, C: Dim, S: Storage<T, R, C>> Matrix<T, R, C, S> {
153153
/// * `compute_v` − set this to `true` to enable the computation of right-singular vectors.
154154
/// * `eps` − tolerance used to determine when a value converged to 0.
155155
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
156-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
157-
/// continues indefinitely until convergence.
156+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
157+
/// continues indefinitely until convergence.
158158
pub fn try_svd_unordered(
159159
self,
160160
compute_u: bool,
@@ -302,8 +302,8 @@ impl<T: ComplexField, D: Dim, S: Storage<T, D, D>> Matrix<T, D, D, S> {
302302
///
303303
/// * `eps` − tolerance used to determine when a value converged to 0.
304304
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
305-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
306-
/// continues indefinitely until convergence.
305+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
306+
/// continues indefinitely until convergence.
307307
pub fn try_schur(self, eps: T::RealField, max_niter: usize) -> Option<Schur<T, D>>
308308
where
309309
D: DimSub<U1>, // For Hessenberg.
@@ -336,8 +336,8 @@ impl<T: ComplexField, D: Dim, S: Storage<T, D, D>> Matrix<T, D, D, S> {
336336
///
337337
/// * `eps` − tolerance used to determine when a value converged to 0.
338338
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
339-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
340-
/// continues indefinitely until convergence.
339+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
340+
/// continues indefinitely until convergence.
341341
pub fn try_symmetric_eigen(
342342
self,
343343
eps: T::RealField,

src/linalg/schur.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ where
6969
///
7070
/// * `eps` − tolerance used to determine when a value converged to 0.
7171
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
72-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
73-
/// continues indefinitely until convergence.
72+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
73+
/// continues indefinitely until convergence.
7474
pub fn try_new(m: OMatrix<T, D, D>, eps: T::RealField, max_niter: usize) -> Option<Self> {
7575
let mut work = Matrix::zeros_generic(m.shape_generic().0, Const::<1>);
7676

src/linalg/svd.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ where
110110
/// * `compute_v` − set this to `true` to enable the computation of right-singular vectors.
111111
/// * `eps` − tolerance used to determine when a value converged to 0.
112112
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
113-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
114-
/// continues indefinitely until convergence.
113+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
114+
/// continues indefinitely until convergence.
115115
pub fn try_new_unordered(
116116
mut matrix: OMatrix<T, R, C>,
117117
compute_u: bool,
@@ -695,8 +695,8 @@ where
695695
/// * `compute_v` − set this to `true` to enable the computation of right-singular vectors.
696696
/// * `eps` − tolerance used to determine when a value converged to 0.
697697
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
698-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
699-
/// continues indefinitely until convergence.
698+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
699+
/// continues indefinitely until convergence.
700700
pub fn try_new(
701701
matrix: OMatrix<T, R, C>,
702702
compute_u: bool,

src/linalg/symmetric_eigen.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ where
7373
///
7474
/// * `eps` − tolerance used to determine when a value converged to 0.
7575
/// * `max_niter` − maximum total number of iterations performed by the algorithm. If this
76-
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
77-
/// continues indefinitely until convergence.
76+
/// number of iteration is exceeded, `None` is returned. If `niter == 0`, then the algorithm
77+
/// continues indefinitely until convergence.
7878
pub fn try_new(m: OMatrix<T, D, D>, eps: T::RealField, max_niter: usize) -> Option<Self>
7979
where
8080
D: DimSub<U1>,

0 commit comments

Comments
 (0)