diff --git a/lib/std/hash/auto_hash.zig b/lib/std/hash/auto_hash.zig index c4060e9182b5f6b0c119e7779614312b0bb23f07..951c0148d9d03f1f3a1835de2583ec9c5555488b 100644 --- a/lib/std/hash/auto_hash.zig +++ b/lib/std/hash/auto_hash.zig @@ -193,8 +193,8 @@ fn typeContainsSlice(comptime K: type) bool { pub fn autoHash(hasher: anytype, key: anytype) void { const Key = @TypeOf(key); if (comptime typeContainsSlice(Key)) { - @compileError("std.auto_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.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."); } hash(hasher, key, .Shallow);