From 13da34955cf9c8f91e0a144ebd46de5e75cacae6 Mon Sep 17 00:00:00 2001 From: Jeremy Hertel Date: Sun, 1 Sep 2024 22:10:34 -0500 Subject: [PATCH] std.hash_map: fix error message in getAutoHashFn --- lib/std/hash_map.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/hash_map.zig b/lib/std/hash_map.zig index 7d7b2739c3..a812760172 100644 --- a/lib/std/hash_map.zig +++ b/lib/std/hash_map.zig @@ -11,11 +11,11 @@ pub fn getAutoHashFn(comptime K: type, comptime Context: type) (fn (Context, K) comptime { assert(@hasDecl(std, "StringHashMap")); // detect when the following message needs updated if (K == []const u8) { - @compileError("std.auto_hash.autoHash does not allow slices here (" ++ + @compileError("std.hash.autoHash does not allow slices here (" ++ @typeName(K) ++ ") because the intent is unclear. " ++ "Consider using std.StringHashMap for hashing the contents of []const u8. " ++ - "Alternatively, consider using std.auto_hash.hash or providing your own hash function instead."); + "Alternatively, consider using std.hash.autoHashStrat or providing your own hash function instead."); } }