Merge pull request #269 from quartiq/fix-pool-example

pool: fix example
This commit is contained in:
Emil Fresk 2022-02-14 16:43:38 +01:00 committed by GitHub
commit 9fb9cd7045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
* Fixed `pool` example in docstring.
### Added
### Changed

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!(