document {:[?; N}
@@ -17,3 +17,18 @@ info!("xs={:[?]}", xs);
Note that for slices of bytes `{:[u8]}` should be preferred as it's better compressed.
`[T] where T: Format` also implements the `Format` trait so it's possible to format `[T]` with `{:?}` but `{:[?]}` uses slightly less bandwidth.
+
+If you have an array of types that implement the `Format` trait, instead of a slice. You should use
+the `{:[?; N]}` parameter (where `N` is a number); this saves bandwidth compared to `{:[?]}`.
+
+``` rust
+# extern crate defmt;
+# use defmt::{Format, info};
+#[derive(Format)]
+struct X {
+ y: u16,
+ z: u8,
+}
+let xs: [X; 2] = [/* .. */];
+info!("xs={:[?; 2]}", xs);
+```
