From d6dad57fab2a6fee73a410d78063ad51369b7e50 Mon Sep 17 00:00:00 2001 From: veryyet <164195759+veryyet@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:09:37 +0800 Subject: [PATCH] chore: fix some typos (#2581) --- crates/distribution-types/src/prioritized_distribution.rs | 2 +- crates/uv-client/src/base_client.rs | 2 +- crates/uv-git/src/git.rs | 2 +- crates/uv/tests/pip_install_scenarios.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/distribution-types/src/prioritized_distribution.rs b/crates/distribution-types/src/prioritized_distribution.rs index 110a69587..39c8183c4 100644 --- a/crates/distribution-types/src/prioritized_distribution.rs +++ b/crates/distribution-types/src/prioritized_distribution.rs @@ -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) diff --git a/crates/uv-client/src/base_client.rs b/crates/uv-client/src/base_client.rs index 1420626de..55b9f0e91 100644 --- a/crates/uv-client/src/base_client.rs +++ b/crates/uv-client/src/base_client.rs @@ -188,7 +188,7 @@ pub struct BaseClient { } impl BaseClient { - /// The underyling [`ClientWithMiddleware`]. + /// The underlying [`ClientWithMiddleware`]. pub fn client(&self) -> ClientWithMiddleware { self.client.clone() } diff --git a/crates/uv-git/src/git.rs b/crates/uv-git/src/git.rs index f865f21df..20b0771a7 100644 --- a/crates/uv-git/src/git.rs +++ b/crates/uv-git/src/git.rs @@ -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, } diff --git a/crates/uv/tests/pip_install_scenarios.rs b/crates/uv/tests/pip_install_scenarios.rs index 0cfba6771..29ec34839 100644 --- a/crates/uv/tests/pip_install_scenarios.rs +++ b/crates/uv/tests/pip_install_scenarios.rs @@ -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,