From 93d8c56d411a7b3cf4aa4e69a490f771047416dd Mon Sep 17 00:00:00 2001 From: Steve C Date: Sat, 16 Dec 2023 21:12:50 -0500 Subject: [PATCH] Fix typo in SemanticModel.parent_expression docstring (#9167) Self-explanatory and self-contained! :) --- crates/ruff_python_semantic/src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_python_semantic/src/model.rs b/crates/ruff_python_semantic/src/model.rs index d92dab84d0..0d0acef9c9 100644 --- a/crates/ruff_python_semantic/src/model.rs +++ b/crates/ruff_python_semantic/src/model.rs @@ -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