Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
//! ```
//! // ...
//! fn main() {
//! let _exit_code = run(); // logger gets flushed as `run()` returns.
//! // std::process::exit(exit_code) // this needs to be commented or it'll
//! // 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
//! std::process::exit(exit_code)
//! # }
//! }
//!
//! fn run() -> i32 {
Expand Down