Skip to content

Commit

Permalink
Clarify docs on Write::write
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jan 21, 2021
1 parent 574f77f commit 0231567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ pub trait Write {
///
/// This will be called by the defmt logging macros to transmit encoded data. The write
/// operation must not fail.
///
/// Note that a call to `write` does *not* correspond to a defmt logging macro invocation. A
/// single `defmt::info!` call can result in an arbitrary number of `write` calls.
fn write(&mut self, bytes: &[u8]);
}

Expand Down

0 comments on commit 0231567

Please sign in to comment.