mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-10-30 13:50:53 +00:00
Remove semicolon in time driver example struct declaration
The semicolon is not allowed with struct declarations with braces. The doc test compiles fine for some reason!?
This commit is contained in:
parent
3341b53eb4
commit
a0dc87d64e
@ -36,7 +36,7 @@
|
||||
//! ```
|
||||
//! use embassy_time::driver::{Driver, AlarmHandle};
|
||||
//!
|
||||
//! struct MyDriver{}; // not public!
|
||||
//! struct MyDriver{} // not public!
|
||||
//! embassy_time::time_driver_impl!(static DRIVER: MyDriver = MyDriver{});
|
||||
//!
|
||||
//! impl Driver for MyDriver {
|
||||
|
Loading…
Reference in New Issue
Block a user