We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c603323 commit 0f4d52dCopy full SHA for 0f4d52d
src/binary_heap.rs
@@ -267,18 +267,14 @@ where
267
/// ```
268
/// use heapless::binary_heap::{BinaryHeap, Max};
269
///
270
- /// let mut heap: BinaryHeap<_, Max, 8> = BinaryHeap::new();
+ /// let mut heap: BinaryHeap<_, Max, 4> = BinaryHeap::new();
271
272
/// assert!(!heap.is_full());
273
274
/// heap.push(1).unwrap();
275
/// heap.push(2).unwrap();
276
/// heap.push(3).unwrap();
277
/// heap.push(4).unwrap();
278
- /// heap.push(5).unwrap();
279
- /// heap.push(6).unwrap();
280
- /// heap.push(7).unwrap();
281
- /// heap.push(8).unwrap();
282
283
/// assert!(heap.is_full());
284
0 commit comments