Skip to content

Commit 6e46d4c

Browse files
authored
Fix comment on Ord for SourceId
1 parent cecde95 commit 6e46d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/core/source_id.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ impl PartialOrd for SourceId {
581581
}
582582
}
583583

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

0 commit comments

Comments
 (0)