Skip to content

Commit 79b63b8

Browse files
committed
cargo fmt
1 parent b1e6d85 commit 79b63b8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! # Quick start
88
//!
99
//! ## Max/Min Heap
10-
//!
10+
//!
1111
//! For max heap, `BiaryHeap::from_vec()` is the most versatile way to create a heap.
1212
//!
1313
//! ```rust
@@ -21,9 +21,9 @@
2121
//! let mut h: BinaryHeap<i32> = BinaryHeap::from_vec((0..42).collect());
2222
//! assert_eq!(h.pop(), Some(41));
2323
//! ```
24-
//!
24+
//!
2525
//! Min heap is similar, but requires type annotation.
26-
//!
26+
//!
2727
//! ```rust
2828
//! use binary_heap_plus::*;
2929
//!
@@ -37,9 +37,9 @@
3737
//! ```
3838
//!
3939
//! ## Custom Heap
40-
//!
40+
//!
4141
//! For custom heap, `BinaryHeap::from_vec_cmp()` works in a similar way to max/min heap. The only difference is that you add the comparator closure with apropriate signature.
42-
//!
42+
//!
4343
//! ```rust
4444
//! use binary_heap_plus::*;
4545
//!
@@ -404,7 +404,6 @@ mod from_liballoc {
404404
d
405405
}
406406
}
407-
408407
}
409408

410409
#[cfg(feature = "serde")]

0 commit comments

Comments
 (0)