From 80ce32b3e90eee7a939ffb872bcf1f52d83994f6 Mon Sep 17 00:00:00 2001 From: konsti Date: Tue, 30 Apr 2024 16:36:36 +0200 Subject: [PATCH] Fix typos (#3323) Split out from https://github.com/astral-sh/uv/pull/3263 --- crates/distribution-types/src/lib.rs | 2 +- crates/uv-distribution/src/source/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/distribution-types/src/lib.rs b/crates/distribution-types/src/lib.rs index 8f2ecea63..4accd291e 100644 --- a/crates/distribution-types/src/lib.rs +++ b/crates/distribution-types/src/lib.rs @@ -477,7 +477,7 @@ impl SourceDist { } } - /// Returns the path to the source distribution, if if it's a local distribution. + /// Returns the path to the source distribution, if it's a local distribution. pub fn as_path(&self) -> Option<&Path> { match self { Self::Path(dist) => Some(&dist.path), diff --git a/crates/uv-distribution/src/source/mod.rs b/crates/uv-distribution/src/source/mod.rs index 9d7e04c15..d609ca114 100644 --- a/crates/uv-distribution/src/source/mod.rs +++ b/crates/uv-distribution/src/source/mod.rs @@ -1556,7 +1556,7 @@ async fn read_pkg_info( Ok(metadata) } -/// Read the [`Metadata23`] from a source distribution's `pyproject.tom` file, if it defines static +/// Read the [`Metadata23`] from a source distribution's `pyproject.toml` file, if it defines static /// metadata consistent with PEP 621. async fn read_pyproject_toml( source_tree: &Path,