From 1b0e913e0fcc63b48778be300b0705ceb1fd84f1 Mon Sep 17 00:00:00 2001 From: AlliedEnvy Date: Fri, 22 Dec 2023 19:08:03 -0600 Subject: [PATCH] std.hash_map: clarify error when Context is missing pub hash/eql --- 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 b900a9a347..ad84254792 100644 --- a/lib/std/hash_map.zig +++ b/lib/std/hash_map.zig @@ -251,7 +251,7 @@ pub fn verifyContext( errors = errors ++ lazy.err_invalid_hash_signature; } } else { - errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a hash function with signature " ++ lazy.hash_signature; + errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a pub hash function with signature " ++ lazy.hash_signature; } // Verify Context.eql(self, PseudoKey, Key) => bool @@ -335,7 +335,7 @@ pub fn verifyContext( errors = errors ++ lazy.err_invalid_eql_signature; } } else { - errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a eql function with signature " ++ lazy.eql_signature; + errors = errors ++ lazy.prefix ++ @typeName(Context) ++ " must declare a pub eql function with signature " ++ lazy.eql_signature; } if (errors.len != 0) {