Fix typo in NameImport.qualified_name docstring (#15170)

This commit is contained in:
Victorien
2024-12-28 23:44:01 +01:00
committed by GitHub
parent 2288cc7478
commit 7ea3a549b2

View File

@@ -56,7 +56,7 @@ impl NameImport {
}
}
/// Returns the [`QualifiedName`] of the imported name (e.g., given `import foo import bar as baz`, returns `["foo", "bar"]`).
/// Returns the [`QualifiedName`] of the imported name (e.g., given `from foo import bar as baz`, returns `["foo", "bar"]`).
fn qualified_name(&self) -> QualifiedName {
match self {
NameImport::Import(import) => QualifiedName::user_defined(&import.name.name),