diff --git a/src/binary_heap.rs b/src/binary_heap.rs index e1dbe367..c275682b 100644 --- a/src/binary_heap.rs +++ b/src/binary_heap.rs @@ -267,7 +267,7 @@ 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()); /// @@ -275,10 +275,6 @@ where /// 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()); /// ```