diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c42dd51ec..74834c47ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `bytes::BufMut` is now implemented on `VecInner`. - Removed generic from `history_buf::OldestOrdered`. - Made `LenType` opt-in. +- Minor fixes to `pool::boxed` docs. ### Fixed diff --git a/src/pool.rs b/src/pool.rs index 13f29eebea..d4b94e110b 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -6,7 +6,7 @@ //! //! - ARM architectures which instruction set include the LDREX, CLREX and STREX instructions, e.g. //! `thumbv7m-none-eabi` but not `thumbv6m-none-eabi` -//! - 32-bit x86, e.g. `i686-unknown-linux-gnu` +//! - 32-bit and 64-bit x86. //! //! # Benchmarks //! diff --git a/src/pool/boxed.rs b/src/pool/boxed.rs index 472840fd6f..770ee575b7 100644 --- a/src/pool/boxed.rs +++ b/src/pool/boxed.rs @@ -3,6 +3,7 @@ //! # Example usage //! //! ``` +//! use core::ptr::addr_of_mut; //! use heapless::{box_pool, pool::boxed::{Box, BoxBlock}}; //! //! box_pool!(MyBoxPool: u128); @@ -70,7 +71,7 @@ //! #[allow(clippy::declare_interior_mutable_const)] //! const BLOCK: BoxBlock = BoxBlock::new(); // <= //! static mut BLOCKS: [BoxBlock; POOL_CAPACITY] = [BLOCK; POOL_CAPACITY]; -//! unsafe { addr_of_mut!(BLOCK).as_mut().unwrap()S } +//! unsafe { addr_of_mut!(BLOCKS).as_mut().unwrap() } //! }; //! //! for block in blocks {