Use dict_entries_len instead of non-existent dict_len struct field

This commit is contained in:
Chadtech 2021-01-31 15:51:57 -05:00
parent 7e63f72922
commit bb853d4b51

View file

@ -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" {