mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Use dict_entries_len instead of non-existent dict_len struct field
This commit is contained in:
parent
7e63f72922
commit
bb853d4b51
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ pub fn dictEmpty(allocator: *Allocator, key_size: usize, value_size: usize) call
|
|||
|
||||
// Dict.len
|
||||
pub fn dictLen(dict: RocDict) callconv(.C) usize {
|
||||
return dict.dict_len;
|
||||
return dict.dict_entries_len;
|
||||
}
|
||||
|
||||
test "RocDict.init() contains nothing" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue