We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4f3f34 + 64e453e commit c0c101fCopy full SHA for c0c101f
lib.rs
@@ -30,9 +30,11 @@
30
//! ```
31
//! // ...
32
//! fn main() {
33
-//! let _exit_code = run(); // logger gets flushed as `run()` returns.
34
-//! // std::process::exit(exit_code) // this needs to be commented or it'll
35
-//! // end the doctest
+//! let exit_code = run(); // logger gets flushed as `run()` returns.
+//! # if false {
+//! # // this must not run or it'll end the doctest
36
+//! std::process::exit(exit_code)
37
+//! # }
38
//! }
39
//!
40
//! fn run() -> i32 {
0 commit comments