Fix some typos in comments (#13157)

This commit is contained in:
zhoufanjin 2024-08-30 18:42:23 +08:00 committed by GitHub
parent 281e6d9791
commit ce68f1cc1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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.