Skip to content

Commit c91e2dc

Browse files
committed
Only inlcude the examples from the README for doctesting.
1 parent 99bffc8 commit c91e2dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ pub use crate::readonly::{
5959
pub use crate::sum_products::{dot, einsum_impl, inner};
6060
pub use ndarray::{array, Ix1, Ix2, Ix3, Ix4, Ix5, Ix6, IxDyn};
6161

62-
/// Test readme
63-
#[doc(hidden)]
64-
pub mod doc_test {
62+
#[cfg(doctest)]
63+
mod doctest {
6564
macro_rules! doc_comment {
6665
($x: expr, $modname: ident) => {
6766
#[doc = $x]

0 commit comments

Comments
 (0)