Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Jul 13, 2021
1 parent 3a1b78a commit 4493ec5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions book/src/format-slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
``` rust
# extern crate defmt;
#[derive(defmt::Format)]
# use defmt::Format
#
#[derive(Format)]
struct X {
y: u16,
z: u8,
Expand All @@ -28,7 +30,9 @@ the `{=[?; N]}` parameter (where `N` is the number of elements); this saves band

``` rust
# extern crate defmt;
#[derive(defmt::Format)]
# use defmt::Format
#
#[derive(Format)]
struct X {
y: u16,
z: u8,
Expand Down

0 comments on commit 4493ec5

Please sign in to comment.