mirror of https://github.com/astral-sh/uv
chore: fix some typos (#2581)
This commit is contained in:
parent
7c728a2e77
commit
d6dad57fab
|
|
@ -341,7 +341,7 @@ impl SourceDistCompatibility {
|
||||||
pub fn is_more_compatible(&self, other: &Self) -> bool {
|
pub fn is_more_compatible(&self, other: &Self) -> bool {
|
||||||
match (self, other) {
|
match (self, other) {
|
||||||
(Self::Compatible, Self::Incompatible(_)) => true,
|
(Self::Compatible, Self::Incompatible(_)) => true,
|
||||||
(Self::Compatible, Self::Compatible) => false, // Arbitary
|
(Self::Compatible, Self::Compatible) => false, // Arbitrary
|
||||||
(Self::Incompatible(_), Self::Compatible) => false,
|
(Self::Incompatible(_), Self::Compatible) => false,
|
||||||
(Self::Incompatible(incompatibility), Self::Incompatible(other_incompatibility)) => {
|
(Self::Incompatible(incompatibility), Self::Incompatible(other_incompatibility)) => {
|
||||||
incompatibility.is_more_compatible(other_incompatibility)
|
incompatibility.is_more_compatible(other_incompatibility)
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ pub struct BaseClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BaseClient {
|
impl BaseClient {
|
||||||
/// The underyling [`ClientWithMiddleware`].
|
/// The underlying [`ClientWithMiddleware`].
|
||||||
pub fn client(&self) -> ClientWithMiddleware {
|
pub fn client(&self) -> ClientWithMiddleware {
|
||||||
self.client.clone()
|
self.client.clone()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ pub(crate) enum GitReference {
|
||||||
enum RefspecStrategy {
|
enum RefspecStrategy {
|
||||||
// All refspecs should be fetched, if any fail then the fetch will fail
|
// All refspecs should be fetched, if any fail then the fetch will fail
|
||||||
All,
|
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,
|
First,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -501,7 +501,7 @@ fn dependency_excludes_range_of_compatible_versions() {
|
||||||
/// There is a non-contiguous range of compatible versions for the requested package
|
/// 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
|
/// `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
|
/// `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`.
|
/// `d`.
|
||||||
///
|
///
|
||||||
/// ```text
|
/// ```text
|
||||||
|
|
@ -3483,7 +3483,7 @@ fn package_only_prereleases_boundary() {
|
||||||
"###);
|
"###);
|
||||||
|
|
||||||
// Since there are only prerelease versions of `a` available, a prerelease is
|
// 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.
|
// the boundary should not be selected.
|
||||||
assert_installed(
|
assert_installed(
|
||||||
&context.venv,
|
&context.venv,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue