Skip to content

Commit

Permalink
Fix comment on Ord for SourceId
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Jan 25, 2025
1 parent cecde95 commit 6e46d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/core/source_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ impl PartialOrd for SourceId {
}
}

// Custom comparison defined as canonical URL equality for git sources and URL
// equality for other sources, ignoring the `precise` and `name` fields.
// Custom comparison defined as source kind and canonical URL equality,
// ignoring the `precise` and `name` fields.
impl Ord for SourceId {
fn cmp(&self, other: &SourceId) -> Ordering {
// If our interior pointers are to the exact same `SourceIdInner` then
Expand Down

0 comments on commit 6e46d4c

Please sign in to comment.