mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.Io.Writer.Hashed: fix bad assert
This commit is contained in:
parent
d91744401f
commit
eb17d4562a
1 changed files with 1 additions and 1 deletions
|
|
@ -2350,7 +2350,7 @@ pub fn Hashed(comptime Hasher: type) type {
|
|||
this.hasher.update(slice);
|
||||
}
|
||||
const pattern = data[data.len - 1];
|
||||
assert(remaining == splat * pattern.len);
|
||||
assert(remaining <= splat * pattern.len);
|
||||
switch (pattern.len) {
|
||||
0 => {
|
||||
assert(remaining == 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue