Skip to content

Commit

Permalink
Make doctest compatible with loom feature
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed May 25, 2024
1 parent b43259d commit fe341fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
//! can receive both blocking and async.
//!
//! ```rust
//! # #[cfg(not(feature = "loom"))] {
//! use std::sync::mpsc;
//! use std::thread;
//! use std::time::Duration;
Expand Down Expand Up @@ -71,6 +72,7 @@
//! }
//! });
//! }
//! # }
//! ```
//!
//! # Sync vs async
Expand Down

0 comments on commit fe341fc

Please sign in to comment.