Skip to content

Commit 7fba65d

Browse files
committed
naming
1 parent dd8d6f1 commit 7fba65d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bind.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,13 @@ void UseDecl::bind_wildcard(artic::NameBinder& binder) {
604604
binder.bind(path);
605605
assert(path.elems.size() >= 2);
606606
auto& penultimate = path.elems[path.elems.size() - 2];
607-
NamedDecl* decl = penultimate.decl;
608-
auto mod = decl->isa<ModDecl>();
609-
if (!mod) {
610-
binder.error(penultimate.id.loc, "'{}' is not a module", decl->id.name);
607+
NamedDecl* importee = penultimate.decl;
608+
auto imported_mod = importee->isa<ModDecl>();
609+
if (!imported_mod) {
610+
binder.error(penultimate.id.loc, "'{}' is not a module", importee->id.name);
611611
}
612612

613-
for (auto& decl : mod->decls) {
613+
for (auto& decl : imported_mod->decls) {
614614
auto member = decl->isa<NamedDecl>();
615615
if (!member)
616616
continue;

0 commit comments

Comments
 (0)