Split out from https://github.com/astral-sh/uv/pull/3263
This commit is contained in:
konsti 2024-04-30 16:36:36 +02:00 committed by GitHub
parent 9ae116f82b
commit 80ce32b3e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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),

View file

@ -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,