File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
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/).
12
12
- ` bytes::BufMut ` is now implemented on ` VecInner ` .
13
13
- Removed generic from ` history_buf::OldestOrdered ` .
14
14
- Made ` LenType ` opt-in.
15
+ - Minor fixes to ` pool::boxed ` docs.
15
16
16
17
### Fixed
17
18
Original file line number Diff line number Diff line change 6
6
//!
7
7
//! - ARM architectures which instruction set include the LDREX, CLREX and STREX instructions, e.g.
8
8
//! `thumbv7m-none-eabi` but not `thumbv6m-none-eabi`
9
- //! - 32-bit x86, e.g. `i686-unknown-linux-gnu`
9
+ //! - 32-bit and 64-bit x86.
10
10
//!
11
11
//! # Benchmarks
12
12
//!
Original file line number Diff line number Diff line change 3
3
//! # Example usage
4
4
//!
5
5
//! ```
6
+ //! use core::ptr::addr_of_mut;
6
7
//! use heapless::{box_pool, pool::boxed::{Box, BoxBlock}};
7
8
//!
8
9
//! box_pool!(MyBoxPool: u128);
70
71
//! #[allow(clippy::declare_interior_mutable_const)]
71
72
//! const BLOCK: BoxBlock<u128> = BoxBlock::new(); // <=
72
73
//! 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() }
74
75
//! };
75
76
//!
76
77
//! for block in blocks {
You can’t perform that action at this time.
0 commit comments