Skip to content

Commit

Permalink
Rollup merge of rust-lang#124351 - Treeniks:master, r=workingjubilee
Browse files Browse the repository at this point in the history
fix typo in binary_heap docs

There was an extra "the" that should not be there.
  • Loading branch information
matthiaskrgr authored Apr 24, 2024
2 parents ecf794b + d3bbdcf commit 62bc38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/collections/binary_heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
//! // instead of a max-heap.
//! impl Ord for State {
//! fn cmp(&self, other: &Self) -> Ordering {
//! // Notice that the we flip the ordering on costs.
//! // Notice that we flip the ordering on costs.
//! // In case of a tie we compare positions - this step is necessary
//! // to make implementations of `PartialEq` and `Ord` consistent.
//! other.cost.cmp(&self.cost)
Expand Down

0 comments on commit 62bc38d

Please sign in to comment.