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 {
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ pub struct BaseClient {
|
|||
}
|
||||
|
||||
impl BaseClient {
|
||||
/// The underyling [`ClientWithMiddleware`].
|
||||
/// The underlying [`ClientWithMiddleware`].
|
||||
pub fn client(&self) -> ClientWithMiddleware {
|
||||
self.client.clone()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue