Skip to content

Commit 9fb9cd7

Browse files
authored
Merge pull request #269 from quartiq/fix-pool-example
pool: fix example
2 parents 3b2bc42 + 668033f commit 9fb9cd7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
* Fixed `pool` example in docstring.
13+
1214
### Added
1315

1416
### Changed

src/pool/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
//! #![no_main]
1616
//! #![no_std]
1717
//!
18-
//! use heapless::{pool, pool::singleton::Box};
18+
//! use cortex_m_rt::{entry, exception};
19+
//! use heapless::{
20+
//! pool,
21+
//! pool::singleton::{Box, Pool},
22+
//! };
1923
//!
2024
//! // instantiate a memory pool of `[u8; 128]` blocks as a global singleton
2125
//! pool!(

0 commit comments

Comments
 (0)