diff --git a/crates/ruff_linter/src/rules/ruff/rules/test_rules.rs b/crates/ruff_linter/src/rules/ruff/rules/test_rules.rs index 730db5408f..fb2a5da227 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/test_rules.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/test_rules.rs @@ -21,7 +21,7 @@ use ruff_text_size::TextSize; use crate::registry::Rule; -/// Check if a comment exists anywhere in a the given file +/// Check if a comment exists anywhere in a given file fn comment_exists(text: &str, locator: &Locator, comment_ranges: &CommentRanges) -> bool { for range in comment_ranges { let comment_text = locator.slice(range); diff --git a/crates/ruff_python_semantic/src/model.rs b/crates/ruff_python_semantic/src/model.rs index b7377e83f4..179303ae29 100644 --- a/crates/ruff_python_semantic/src/model.rs +++ b/crates/ruff_python_semantic/src/model.rs @@ -2095,7 +2095,7 @@ bitflags! { /// `__future__`-style type annotations are enabled in this model. /// That could be because it's a stub file, /// or it could be because it's a non-stub file that has `from __future__ import annotations` - /// a the top of the module. + /// at the top of the module. const FUTURE_ANNOTATIONS_OR_STUB = Self::FUTURE_ANNOTATIONS.bits() | Self::STUB_FILE.bits(); /// The model has traversed past the module docstring.