chore: remove repetitive words (#2485)

This commit is contained in:
John 2024-03-16 22:13:48 +08:00 committed by GitHub
parent 5b2293dbd0
commit 62fdd3db59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ pub static GLOBAL_AUTH_STORE: Lazy<AuthenticationStore> = Lazy::new(Authenticati
//
// The host must always be an exact match.
//
// The port is only allowed to differ if it it matches the "default port" for the scheme.
// The port is only allowed to differ if it matches the "default port" for the scheme.
// However, `url` (and therefore `reqwest`) sets the `port` to `None` if it matches the default port
// so we do not need any special handling here.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]

View file

@ -99,7 +99,7 @@ impl<'a> SitePackages<'a> {
self.distributions.iter().flatten()
}
/// Returns an iterator over the the installed distributions, represented as requirements.
/// Returns an iterator over the installed distributions, represented as requirements.
pub fn requirements(&self) -> impl Iterator<Item = Requirement> + '_ {
self.iter().map(|dist| Requirement {
name: dist.name().clone(),