Skip to content

Commit 991c635

Browse files
author
Andrew J Westlake
committed
Hid the fn main in doctests that gets used when some features are not enabled
1 parent dc20dab commit 991c635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//! }
4141
//! #
4242
//! # #[cfg(not(all(feature = "tokio-runtime", feature = "attributes")))]
43-
//! fn main() {}
43+
//! # fn main() {}
4444
//! ```
4545
//!
4646
//! `pytests/test_example.rs` for the `async-std` runtime:
@@ -52,7 +52,7 @@
5252
//! }
5353
//! #
5454
//! # #[cfg(not(all(feature = "async-std-runtime", feature = "attributes")))]
55-
//! fn main() {}
55+
//! # fn main() {}
5656
//! ```
5757
//!
5858
//! ### Cargo Configuration

0 commit comments

Comments
 (0)