Skip to content

Commit

Permalink
fix typo in binary_heap docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Treeniks committed Apr 24, 2024
1 parent 7bb4f08 commit d3bbdcf
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 d3bbdcf

Please sign in to comment.