chore: remove repetitive words (#10502)

This commit is contained in:
veryyet 2024-03-21 11:57:16 +08:00 committed by GitHub
parent 4ad3166a3f
commit c5ea4209bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -134,7 +134,7 @@ impl Statistics {
}
}
/// We currently prefer the the similarity index, but i'd like to keep this around
/// We currently prefer the similarity index, but i'd like to keep this around
#[allow(clippy::cast_precision_loss, unused)]
pub(crate) fn jaccard_index(&self) -> f32 {
self.intersection as f32 / (self.black_input + self.ruff_output + self.intersection) as f32

View file

@ -248,7 +248,7 @@ where
/// The current indent level of the formatter.
///
/// One can determine the the width of the indent itself (in number of ASCII
/// One can determine the width of the indent itself (in number of ASCII
/// space characters) by multiplying the indent level by the configured indent
/// width.
///

View file

@ -166,7 +166,7 @@ pub fn parse(source: &str, mode: Mode) -> Result<Mod, ParseError> {
/// Parse the given Python source code using the specified [`Mode`] and [`TextSize`].
///
/// This function allows to specify the location of the the source code, other than
/// This function allows to specify the location of the source code, other than
/// that, it behaves exactly like [`parse`].
///
/// # Example

View file

@ -236,7 +236,7 @@ fn is_package_with_cache<'a>(
/// Applies a transformation to a [`Configuration`].
///
/// Used to override options with the the values provided by the CLI.
/// Used to override options with the values provided by the CLI.
pub trait ConfigurationTransformer: Sync {
fn transform(&self, config: Configuration) -> Configuration;
}