diff options
| author | gingerBill <bill@gingerbill.org> | 2022-12-09 11:32:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-12-09 11:32:52 +0000 |
| commit | be22f0d1e1d5bb7c822dd31b1b60d7863fca6264 (patch) | |
| tree | 39da567adac5ac5c3457ceab4e7429cd7c47c179 /src | |
| parent | 34a048f7daaf93b16ae4121bf5238f9008f3465b (diff) | |
Fix variable shadow in compiler
Diffstat (limited to 'src')
| -rw-r--r-- | src/docs_writer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index 313d7b25a..b7b17cb1a 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -977,9 +977,9 @@ OdinDocArray<OdinDocScopeEntry> odin_doc_add_pkg_entries(OdinDocWriter *w, AstPa auto entries = array_make<OdinDocScopeEntry>(heap_allocator(), 0, w->entity_cache.entries.count); defer (array_free(&entries)); - for (auto const &entry : pkg->scope->elements) { - String name = entry.key.string; - Entity *e = entry.value; + for (auto const &element : pkg->scope->elements) { + String name = element.key.string; + Entity *e = element.value; switch (e->kind) { case Entity_Invalid: case Entity_Nil: |