Shortened the BinaryHeap::is_full example

This commit is contained in:
Oliver Rockstedt 2024-10-07 12:19:25 +02:00
parent c603323c23
commit 0f4d52de91

View File

@ -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());
/// ``` /// ```