Skip to content

Commit

Permalink
Fix typo in name normalization (astral-sh#7217)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Sep 9, 2024
1 parent dcbaa1f commit d9cd282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/uv-normalize/src/dist_info_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::fmt::{Display, Formatter};
pub struct DistInfoName<'a>(Cow<'a, str>);

impl<'a> DistInfoName<'a> {
/// Create a validated, normalized extra name.
/// Create a validated, normalized `.dist-info` directory name.
pub fn new(name: &'a str) -> Self {
if Self::is_normalized(name) {
Self(Cow::Borrowed(name))
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-normalize/src/group_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{validate_and_normalize_owned, validate_and_normalize_ref, InvalidNam
pub struct GroupName(String);

impl GroupName {
/// Create a validated, normalized extra name.
/// Create a validated, normalized group name.
pub fn new(name: String) -> Result<Self, InvalidNameError> {
validate_and_normalize_owned(name).map(Self)
}
Expand Down

0 comments on commit d9cd282

Please sign in to comment.