From a0dc87d64ec75b6236abb60f93815f6d5c621de5 Mon Sep 17 00:00:00 2001 From: Rasmus Pedersen Date: Wed, 5 Jul 2023 14:07:05 +0200 Subject: [PATCH] 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!? --- embassy-time/src/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-time/src/driver.rs b/embassy-time/src/driver.rs index d6436369..5fe7beca 100644 --- a/embassy-time/src/driver.rs +++ b/embassy-time/src/driver.rs @@ -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 {