mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Zig fmt
This commit is contained in:
parent
bec9e6ff53
commit
ba5f87e149
2 changed files with 3 additions and 8 deletions
|
@ -45,12 +45,7 @@ pub const RocDict = extern struct {
|
|||
return result;
|
||||
}
|
||||
|
||||
pub fn deinit(
|
||||
self: RocDict,
|
||||
allocator: *Allocator,
|
||||
key_size: usize,
|
||||
value_size: usize
|
||||
) void {
|
||||
pub fn deinit(self: RocDict, allocator: *Allocator, key_size: usize, value_size: usize) void {
|
||||
if (!self.isEmpty()) {
|
||||
const slot_size = slotSize(key_size, value_size);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -237,4 +237,4 @@ test "iterative non-divisible update" {
|
|||
|
||||
std.testing.expectEqual(iterative_hash, non_iterative_hash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue