mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 06:50:32 +00:00
Shortened the BinaryHeap::is_full example
This commit is contained in:
parent
c603323c23
commit
0f4d52de91
@ -267,7 +267,7 @@ where
|
|||||||
/// ```
|
/// ```
|
||||||
/// use heapless::binary_heap::{BinaryHeap, Max};
|
/// use heapless::binary_heap::{BinaryHeap, Max};
|
||||||
///
|
///
|
||||||
/// let mut heap: BinaryHeap<_, Max, 8> = BinaryHeap::new();
|
/// let mut heap: BinaryHeap<_, Max, 4> = BinaryHeap::new();
|
||||||
///
|
///
|
||||||
/// assert!(!heap.is_full());
|
/// assert!(!heap.is_full());
|
||||||
///
|
///
|
||||||
@ -275,10 +275,6 @@ where
|
|||||||
/// heap.push(2).unwrap();
|
/// heap.push(2).unwrap();
|
||||||
/// heap.push(3).unwrap();
|
/// heap.push(3).unwrap();
|
||||||
/// heap.push(4).unwrap();
|
/// heap.push(4).unwrap();
|
||||||
/// heap.push(5).unwrap();
|
|
||||||
/// heap.push(6).unwrap();
|
|
||||||
/// heap.push(7).unwrap();
|
|
||||||
/// heap.push(8).unwrap();
|
|
||||||
///
|
///
|
||||||
/// assert!(heap.is_full());
|
/// assert!(heap.is_full());
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user