commit edc40157eb3b547f86185e2f85c08daf928eb9f1 (tree)
parent 42b1b6be90fc1034875a6e16cf3cbe1c9d6030ca
Author: Zachary Meadows <zmeadows@gmail.com>
Date: Tue, 8 Sep 2020 10:41:05 -0700
Switch type of HashMap's count from usize to u32 (#6262)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/hash_map.zig b/lib/std/hash_map.zig
@@ -113,7 +113,7 @@ pub fn HashMap(
return self.unmanaged.clearAndFree(self.allocator);
}
- pub fn count(self: Self) usize {
+ pub fn count(self: Self) Size {
return self.unmanaged.count();
}