pool: fix example

* Pool trait and exception use missing
This commit is contained in:
Robert Jördens 2022-02-11 10:28:40 +01:00
parent 3b2bc421a0
commit 6ffbcb84f1

View File

@ -15,7 +15,11 @@
//! #![no_main]
//! #![no_std]
//!
//! use heapless::{pool, pool::singleton::Box};
//! use cortex_m_rt::{entry, exception};
//! use heapless::{
//! pool,
//! pool::singleton::{Box, Pool},
//! };
//!
//! // instantiate a memory pool of `[u8; 128]` blocks as a global singleton
//! pool!(