mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Auto merge of #7098 - lukaslueg:patch-1, r=ehuss
Update dependency.rs Typo due to copypasta
This commit is contained in:
commit
3a985c7f8e
@ -437,7 +437,7 @@ impl Dependency {
|
||||
self.matches_id(sum.package_id())
|
||||
}
|
||||
|
||||
/// Returns `true` if the package (`sum`) can fulfill this dependency request.
|
||||
/// Returns `true` if the package (`id`) can fulfill this dependency request.
|
||||
pub fn matches_ignoring_source(&self, id: PackageId) -> bool {
|
||||
self.package_name() == id.name() && self.version_req().matches(id.version())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user