From 6ffbcb84f127ec41c3978d1c6557f57c843fad62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Fri, 11 Feb 2022 10:28:40 +0100 Subject: [PATCH 1/2] pool: fix example * Pool trait and exception use missing --- src/pool/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pool/mod.rs b/src/pool/mod.rs index 65a9c451..045d230e 100644 --- a/src/pool/mod.rs +++ b/src/pool/mod.rs @@ -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!( From 668033f991bb58eb627196d0e26697e4e1e3b9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Mon, 14 Feb 2022 14:19:15 +0100 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c05ef71..76db5231 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +* Fixed `pool` example in docstring. + ### Added ### Changed