File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212- ` bytes::BufMut ` is now implemented on ` VecInner ` .
1313- Removed generic from ` history_buf::OldestOrdered ` .
1414- Made ` LenType ` opt-in.
15+ - Minor fixes to ` pool::boxed ` docs.
1516
1617### Fixed
1718
Original file line number Diff line number Diff line change 33//! # Example usage
44//!
55//! ```
6+ //! use core::ptr::addr_of_mut;
67//! use heapless::{box_pool, pool::boxed::{Box, BoxBlock}};
78//!
89//! box_pool!(MyBoxPool: u128);
7071//! #[allow(clippy::declare_interior_mutable_const)]
7172//! const BLOCK: BoxBlock<u128> = BoxBlock::new(); // <=
7273//! static mut BLOCKS: [BoxBlock<u128>; POOL_CAPACITY] = [BLOCK; POOL_CAPACITY];
73- //! unsafe { addr_of_mut!(BLOCK ).as_mut().unwrap()S }
74+ //! unsafe { addr_of_mut!(BLOCKS ).as_mut().unwrap() }
7475//! };
7576//!
7677//! for block in blocks {
You can’t perform that action at this time.
0 commit comments