Skip to content

Commit 2d258bc

Browse files
committed
Fix rustdoc warnings everywhere
1 parent 6a8fb96 commit 2d258bc

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

src/dimension/broadcast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ pub trait DimMax<Other: Dimension>
4141
}
4242

4343
/// Dimensions of the same type remain unchanged when co_broadcast.
44-
/// So you can directly use D as the resulting type.
45-
/// (Instead of <D as DimMax<D>>::BroadcastOutput)
44+
/// So you can directly use `D` as the resulting type.
45+
/// (Instead of `<D as DimMax<D>>::BroadcastOutput`)
4646
impl<D: Dimension> DimMax<D> for D
4747
{
4848
type Output = D;

src/doc/crate_feature_flags.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030
//! - Enable the ``threading`` feature in the matrixmultiply package
3131
//!
3232
//! [`parallel`]: crate::parallel
33+
34+
#[cfg(doc)]
35+
use crate::parallel::par_azip;

src/doc/ndarray_for_numpy_users/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
//! convert `f32` array to `i32` array with ["saturating" conversion][sat_conv]; care needed because it can be a lossy conversion or result in non-finite values! See [the reference for information][as_typecast].
655655
//!
656656
//! </td></tr>
657-
//! <table>
657+
//! </table>
658658
//!
659659
//! [as_conv]: https://doc.rust-lang.org/rust-by-example/types/cast.html
660660
//! [sat_conv]: https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html#fixing-unsoundness-in-casts
@@ -677,6 +677,8 @@
677677
//! [.column()]: ArrayBase::column
678678
//! [.column_mut()]: ArrayBase::column_mut
679679
//! [concatenate()]: crate::concatenate()
680+
//! [concatenate!]: crate::concatenate!
681+
//! [stack!]: crate::stack!
680682
//! [::default()]: ArrayBase::default
681683
//! [.diag()]: ArrayBase::diag
682684
//! [.dim()]: ArrayBase::dim

src/doc/ndarray_for_numpy_users/rk_step.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
//! ```
170170
//!
171171
//! [`.scaled_add()`]: crate::ArrayBase::scaled_add
172+
//! [`azip!()`]: crate::azip!
172173
//!
173174
//! ### SciPy license
174175
//!

src/slice.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
// except according to those terms.
88
use crate::dimension::slices_intersect;
99
use crate::error::{ErrorKind, ShapeError};
10+
#[cfg(doc)]
11+
use crate::s;
1012
use crate::{ArrayViewMut, DimAdd, Dimension, Ix0, Ix1, Ix2, Ix3, Ix4, Ix5, Ix6, IxDyn};
13+
1114
#[cfg(not(feature = "std"))]
1215
use alloc::vec::Vec;
1316
use std::convert::TryFrom;

0 commit comments

Comments
 (0)