This commit is contained in:
Chadtech 2021-02-04 00:37:27 -05:00
parent bec9e6ff53
commit ba5f87e149
2 changed files with 3 additions and 8 deletions

View file

@ -45,12 +45,7 @@ pub const RocDict = extern struct {
return result; return result;
} }
pub fn deinit( pub fn deinit(self: RocDict, allocator: *Allocator, key_size: usize, value_size: usize) void {
self: RocDict,
allocator: *Allocator,
key_size: usize,
value_size: usize
) void {
if (!self.isEmpty()) { if (!self.isEmpty()) {
const slot_size = slotSize(key_size, value_size); const slot_size = slotSize(key_size, value_size);

View file

@ -178,7 +178,7 @@ pub const Wyhash = struct {
} }
}; };
fn wyhash_hash(seed: u64, input:[]const u8) u64 { fn wyhash_hash(seed: u64, input: []const u8) u64 {
return Wyhash.hash(seed, input); return Wyhash.hash(seed, input);
} }
@ -237,4 +237,4 @@ test "iterative non-divisible update" {
std.testing.expectEqual(iterative_hash, non_iterative_hash); std.testing.expectEqual(iterative_hash, non_iterative_hash);
} }
} }