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