authorgravatar for dev@jhert.comJeremy Hertel <dev@jhert.com> 2024-09-01 22:10:34-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-09-02 12:09:10+03:00
log13da34955cf9c8f91e0a144ebd46de5e75cacae6
tree8dc28a16fdc1bb559994c65eb80333ab110a5010
parent6d2945f1fe387c55eff003ada6e72146daff10f2

std.hash_map: fix error message in getAutoHashFn


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/hash_map.zig+2-2
......@@ -11,11 +11,11 @@ pub fn getAutoHashFn(comptime K: type, comptime Context: type) (fn (Context, K)
1111 comptime {
1212 assert(@hasDecl(std, "StringHashMap")); // detect when the following message needs updated
1313 if (K == []const u8) {
14 @compileError("std.auto_hash.autoHash does not allow slices here (" ++
14 @compileError("std.hash.autoHash does not allow slices here (" ++
1515 @typeName(K) ++
1616 ") because the intent is unclear. " ++
1717 "Consider using std.StringHashMap for hashing the contents of []const u8. " ++
18 "Alternatively, consider using std.auto_hash.hash or providing your own hash function instead.");
18 "Alternatively, consider using std.hash.autoHashStrat or providing your own hash function instead.");
1919 }
2020 }
2121