diff --git a/Cargo.toml b/Cargo.toml index c988af8..0be3376 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,4 +17,4 @@ default = [] [dependencies] cfg-if = "1.0" -crate_interface = "0.1" +crate_interface = "0.3" diff --git a/src/lib.rs b/src/lib.rs index 591ad02..6822892 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,11 +43,11 @@ //! } //! //! let guard = NoPreempt::new(); -//! /* The critical section starts here -//! -//! Do something that requires preemption to be disabled -//! -//! The critical section ends here */ +//! // The critical section starts here +//! // +//! // Do something that requires preemption to be disabled +//! // +//! // The critical section ends here //! drop(guard); //! ```