[ruff] Fix minor typos in doc comments (#20623)

This commit is contained in:
Takayuki Maeda 2025-09-29 15:56:23 +09:00 committed by GitHub
parent 65e805de62
commit 666f53331f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 8 additions and 8 deletions

View file

@ -2101,7 +2101,7 @@ impl<'a> SemanticModel<'a> {
/// Finds and returns the [`Scope`] corresponding to a given [`ast::StmtFunctionDef`].
///
/// This method searches all scopes created by a function definition, comparing the
/// [`TextRange`] of the provided `function_def` with the the range of the function
/// [`TextRange`] of the provided `function_def` with the range of the function
/// associated with the scope.
pub fn function_scope(&self, function_def: &ast::StmtFunctionDef) -> Option<&Scope<'_>> {
self.scopes.iter().find(|scope| {