Skip to content

Commit 4193cb4

Browse files
committed
zephyr: printk: Fix doc error
The docs reference `alloc::format`. Include the extern for this crate so that this will work. Signed-off-by: David Brown <[email protected]>
1 parent 2755e20 commit 4193cb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zephyr/src/printk.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
//!
66
//! This uses the `k_str_out` syscall, which is part of printk to output to the console.
77
8+
// Needed by the docs, even though we don't allocate.
9+
extern crate alloc;
10+
811
use core::fmt::{
912
Arguments,
1013
Result,

0 commit comments

Comments
 (0)