mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-19 10:00:42 +00:00
Fix some typos in comments (#13157)
This commit is contained in:
parent
281e6d9791
commit
ce68f1cc1b
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ use ruff_text_size::TextSize;
|
||||||
|
|
||||||
use crate::registry::Rule;
|
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 {
|
fn comment_exists(text: &str, locator: &Locator, comment_ranges: &CommentRanges) -> bool {
|
||||||
for range in comment_ranges {
|
for range in comment_ranges {
|
||||||
let comment_text = locator.slice(range);
|
let comment_text = locator.slice(range);
|
||||||
|
|
|
@ -2095,7 +2095,7 @@ bitflags! {
|
||||||
/// `__future__`-style type annotations are enabled in this model.
|
/// `__future__`-style type annotations are enabled in this model.
|
||||||
/// That could be because it's a stub file,
|
/// 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`
|
/// 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();
|
const FUTURE_ANNOTATIONS_OR_STUB = Self::FUTURE_ANNOTATIONS.bits() | Self::STUB_FILE.bits();
|
||||||
|
|
||||||
/// The model has traversed past the module docstring.
|
/// The model has traversed past the module docstring.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue