Skip to content

Commit

Permalink
chore: remove repetitive words (#10502)
Browse files Browse the repository at this point in the history
  • Loading branch information
veryyet committed Mar 21, 2024
1 parent 4ad3166 commit c5ea420
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/ruff_dev/src/format_dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_python_formatter/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_python_parser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_workspace/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c5ea420

Please sign in to comment.