mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
Merge pull request #581 from zeenix/fix-docs
Minor fixes to `pool` docs
This commit is contained in:
commit
779e608eb6
@ -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
|
||||
|
||||
|
@ -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
|
||||
//!
|
||||
|
@ -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<u128> = BoxBlock::new(); // <=
|
||||
//! static mut BLOCKS: [BoxBlock<u128>; 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user