mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Fix typo in SemanticModel.parent_expression docstring (#9167)
Self-explanatory and self-contained! :)
This commit is contained in:
parent
a336c1bc95
commit
93d8c56d41
1 changed files with 1 additions and 1 deletions
|
@ -993,7 +993,7 @@ impl<'a> SemanticModel<'a> {
|
|||
&self.nodes[node_id]
|
||||
}
|
||||
|
||||
/// Given a [`Expr`], return its parent, if any.
|
||||
/// Given a [`NodeId`], return its parent, if any.
|
||||
#[inline]
|
||||
pub fn parent_expression(&self, node_id: NodeId) -> Option<&'a Expr> {
|
||||
self.nodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue