We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std.hash.autoHash
1 parent a82d7c2 commit bbcc26aCopy full SHA for bbcc26a
lib/std/hash/auto_hash.zig
@@ -193,8 +193,8 @@ fn typeContainsSlice(comptime K: type) bool {
193
pub fn autoHash(hasher: anytype, key: anytype) void {
194
const Key = @TypeOf(key);
195
if (comptime typeContainsSlice(Key)) {
196
- @compileError("std.auto_hash.autoHash does not allow slices as well as unions and structs containing slices here (" ++ @typeName(Key) ++
197
- ") because the intent is unclear. Consider using std.auto_hash.hash or providing your own hash function instead.");
+ @compileError("std.hash.autoHash does not allow slices as well as unions and structs containing slices here (" ++ @typeName(Key) ++
+ ") because the intent is unclear. Consider using std.hash.autoHashStrat or providing your own hash function instead.");
198
}
199
200
hash(hasher, key, .Shallow);
0 commit comments