Skip to content

Commit c5ea420

Browse files
author
veryyet
authored
chore: remove repetitive words (#10502)
1 parent 4ad3166 commit c5ea420

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

crates/ruff_dev/src/format_dev.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl Statistics {
134134
}
135135
}
136136

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

crates/ruff_python_formatter/src/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ where
248248

249249
/// The current indent level of the formatter.
250250
///
251-
/// One can determine the the width of the indent itself (in number of ASCII
251+
/// One can determine the width of the indent itself (in number of ASCII
252252
/// space characters) by multiplying the indent level by the configured indent
253253
/// width.
254254
///

crates/ruff_python_parser/src/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub fn parse(source: &str, mode: Mode) -> Result<Mod, ParseError> {
166166

167167
/// Parse the given Python source code using the specified [`Mode`] and [`TextSize`].
168168
///
169-
/// This function allows to specify the location of the the source code, other than
169+
/// This function allows to specify the location of the source code, other than
170170
/// that, it behaves exactly like [`parse`].
171171
///
172172
/// # Example

crates/ruff_workspace/src/resolver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ fn is_package_with_cache<'a>(
236236

237237
/// Applies a transformation to a [`Configuration`].
238238
///
239-
/// Used to override options with the the values provided by the CLI.
239+
/// Used to override options with the values provided by the CLI.
240240
pub trait ConfigurationTransformer: Sync {
241241
fn transform(&self, config: Configuration) -> Configuration;
242242
}

0 commit comments

Comments
 (0)