diff options
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -1079,10 +1079,8 @@ fn generate_entity_discovery( | |||
| 1079 | /// | 1079 | /// |
| 1080 | /// ```no_run | 1080 | /// ```no_run |
| 1081 | /// # use embassy_ha::{Device, Transport}; | 1081 | /// # use embassy_ha::{Device, Transport}; |
| 1082 | /// # async fn example(mut device: Device<'_>, create_transport: impl Fn() -> impl Transport) { | 1082 | /// # async fn example(mut device: Device<'_>, mut transport: impl Transport) { |
| 1083 | /// loop { | 1083 | /// loop { |
| 1084 | /// let mut transport = create_transport(); | ||
| 1085 | /// | ||
| 1086 | /// match embassy_ha::run(&mut device, &mut transport).await { | 1084 | /// match embassy_ha::run(&mut device, &mut transport).await { |
| 1087 | /// Ok(()) => { | 1085 | /// Ok(()) => { |
| 1088 | /// // Normal exit (this shouldn't happen in practice) | 1086 | /// // Normal exit (this shouldn't happen in practice) |
