Commit ae09fe7
committed
Port updated example from rust-lang/rust
This commits ports one small part of rust-lang/rust#91861. The main
change that PR made to `binary_heap.rs` was to replace vectors with
arrays in the examples. We do *not* port such changes as they require
Rust 1.56.0, which is greater than this crate's current MSRV. However,
it also simplified the setup in the example of `BinaryHeap::append()`,
and we repeat that here only with vectors instead of arrays.1 parent 5837ac2 commit ae09fe7
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
| 1067 | + | |
| 1068 | + | |
1072 | 1069 | | |
1073 | 1070 | | |
1074 | 1071 | | |
| |||
0 commit comments