mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-30 22:10:37 +00:00
Merge pull request #269 from quartiq/fix-pool-example
pool: fix example
This commit is contained in:
commit
9fb9cd7045
@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Fixed
|
||||
|
||||
* Fixed `pool` example in docstring.
|
||||
|
||||
### Added
|
||||
|
||||
### Changed
|
||||
|
@ -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!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user