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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user