chore: fix some typos (#2581)

This commit is contained in:
veryyet 2024-03-21 12:09:37 +08:00 committed by GitHub
parent 7c728a2e77
commit d6dad57fab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -341,7 +341,7 @@ impl SourceDistCompatibility {
pub fn is_more_compatible(&self, other: &Self) -> bool {
match (self, other) {
(Self::Compatible, Self::Incompatible(_)) => true,
(Self::Compatible, Self::Compatible) => false, // Arbitary
(Self::Compatible, Self::Compatible) => false, // Arbitrary
(Self::Incompatible(_), Self::Compatible) => false,
(Self::Incompatible(incompatibility), Self::Incompatible(other_incompatibility)) => {
incompatibility.is_more_compatible(other_incompatibility)

View File

@ -188,7 +188,7 @@ pub struct BaseClient {
}
impl BaseClient {
/// The underyling [`ClientWithMiddleware`].
/// The underlying [`ClientWithMiddleware`].
pub fn client(&self) -> ClientWithMiddleware {
self.client.clone()
}

View File

@ -47,7 +47,7 @@ pub(crate) enum GitReference {
enum RefspecStrategy {
// All refspecs should be fetched, if any fail then the fetch will fail
All,
// Stop after the first successful fetch, if none suceed then the fetch will fail
// Stop after the first successful fetch, if none succeed then the fetch will fail
First,
}

View File

@ -501,7 +501,7 @@ fn dependency_excludes_range_of_compatible_versions() {
/// There is a non-contiguous range of compatible versions for the requested package
/// `a`, but another dependency `c` excludes the range. This is the same as
/// `dependency-excludes-range-of-compatible-versions` but some of the versions of
/// `a` are incompatible for another reason e.g. dependency on non-existant package
/// `a` are incompatible for another reason e.g. dependency on non-existent package
/// `d`.
///
/// ```text
@ -3483,7 +3483,7 @@ fn package_only_prereleases_boundary() {
"###);
// Since there are only prerelease versions of `a` available, a prerelease is
// allowed. Since the user did not explictly request a pre-release, pre-releases at
// allowed. Since the user did not explicitly request a pre-release, pre-releases at
// the boundary should not be selected.
assert_installed(
&context.venv,