Skip to content

Commit

Permalink
Shortened the BinaryHeap::is_full example
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcebox committed Oct 7, 2024
1 parent c603323 commit 0f4d52d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/binary_heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,14 @@ where
/// ```
/// 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());
///
/// heap.push(1).unwrap();
/// heap.push(2).unwrap();
/// heap.push(3).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());
/// ```
Expand Down

0 comments on commit 0f4d52d

Please sign in to comment.