Skip to content

Commit 0f4d52d

Browse files
committed
Shortened the BinaryHeap::is_full example
1 parent c603323 commit 0f4d52d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/binary_heap.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,18 +267,14 @@ where
267267
/// ```
268268
/// use heapless::binary_heap::{BinaryHeap, Max};
269269
///
270-
/// let mut heap: BinaryHeap<_, Max, 8> = BinaryHeap::new();
270+
/// let mut heap: BinaryHeap<_, Max, 4> = BinaryHeap::new();
271271
///
272272
/// assert!(!heap.is_full());
273273
///
274274
/// heap.push(1).unwrap();
275275
/// heap.push(2).unwrap();
276276
/// heap.push(3).unwrap();
277277
/// heap.push(4).unwrap();
278-
/// heap.push(5).unwrap();
279-
/// heap.push(6).unwrap();
280-
/// heap.push(7).unwrap();
281-
/// heap.push(8).unwrap();
282278
///
283279
/// assert!(heap.is_full());
284280
/// ```

0 commit comments

Comments
 (0)