diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-14 12:33:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-14 12:33:42 +0000 |
| commit | 1ab90de4931f07ea61b1195de602f282a853568b (patch) | |
| tree | 1e5ef6379eeefc1fed8da78948bd6d38e472bdfb /src/check_expr.cpp | |
| parent | 1064bcd0602c9ff86e2a304ecb46b8d86bb07d52 (diff) | |
Minimize `StringMap` structure usage
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 52efd9a66..ff74a2547 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -234,7 +234,7 @@ gb_internal void check_did_you_mean_type(String const &name, Slice<Entity *> con gb_internal void check_did_you_mean_scope(String const &name, Scope *scope, char const *prefix = "") { ERROR_BLOCK(); - DidYouMeanAnswers d = did_you_mean_make(heap_allocator(), scope->elements.entries.count, name); + DidYouMeanAnswers d = did_you_mean_make(heap_allocator(), scope->elements.count, name); defer (did_you_mean_destroy(&d)); rw_mutex_shared_lock(&scope->mutex); |