aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/macros.rs b/src/macros.rs
index 813552f..6b3b269 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -33,8 +33,7 @@ macro_rules! iprintln {
/// # Example
///
/// ``` no_run
-/// #[macro_use(singleton)]
-/// extern crate cortex_m;
+/// use cortex_m::singleton;
///
/// fn main() {
/// // OK if `main` is executed only once
@@ -77,8 +76,7 @@ macro_rules! singleton {
}
/// ``` compile_fail
-/// #[macro_use(singleton)]
-/// extern crate cortex_m;
+/// use cortex_m::singleton;
///
/// fn main() {}
///
@@ -92,8 +90,7 @@ const CFAIL: () = ();
/// ```
/// #![deny(unsafe_code)]
-/// #[macro_use(singleton)]
-/// extern crate cortex_m;
+/// use cortex_m::singleton;
///
/// fn main() {}
///