mirror of
https://github.com/astral-sh/ruff
synced 2026-01-10 16:15:19 -05:00
Fix typo in SemanticModel.parent_expression docstring (#9167)
Self-explanatory and self-contained! :)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user