Skip to content

Commit 3600fd5

Browse files
committed
fix comment typo
1 parent 153d998 commit 3600fd5

File tree

1 file changed

+3
-2
lines changed
  • src/rust/engine/dep_inference/src/python

1 file changed

+3
-2
lines changed

src/rust/engine/dep_inference/src/python/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl ImportCollector<'_> {
110110
}
111111

112112
/// Extract an optional "import name" string from a string-related `tree_sitter::Node`. The string is
113-
/// expected to analyze statically as an import name and so `extract_string` ignore any strings
113+
/// expected to analyze statically as an import name and so `extract_string` ignores any strings
114114
/// containing escape sequences as well as any use of f-strings with interpolations.
115115
fn extract_string(&self, node: tree_sitter::Node) -> Option<String> {
116116
match node.kind_id() {
@@ -127,7 +127,8 @@ impl ImportCollector<'_> {
127127
|| content_node.child_count() > 0
128128
{
129129
// The `string_content` node is expected to have no children if the string is a simple string literal.
130-
// If there are children, then it means that the string contains escape sequences and is not an import name.
130+
// If there are children, then it means that the string contains escape sequences and is not an import name
131+
// (either an `escape_sequence` or `escape_interpolation` node).
131132
return None;
132133
}
133134

0 commit comments

Comments
 (0)