Skip to content

Commit

Permalink
Auto merge of #7098 - lukaslueg:patch-1, r=ehuss
Browse files Browse the repository at this point in the history
Update dependency.rs

Typo due to copypasta
  • Loading branch information
bors committed Jul 5, 2019
2 parents ab75a4b + 455f80b commit 3a985c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 3a985c7

Please sign in to comment.