Fix a typo in WeakKeyMap argument error

[Bug #21112]
This commit is contained in:
Jean Boussier 2025-02-04 21:54:53 +01:00
parent 10d06b9a72
commit 91a10c0757
Notes: git 2025-02-04 21:25:41 +00:00

View File

@ -859,7 +859,7 @@ wkmap_aset(VALUE self, VALUE key, VALUE val)
TypedData_Get_Struct(self, struct weakkeymap, &weakkeymap_type, w);
if (!FL_ABLE(key) || SYMBOL_P(key) || RB_BIGNUM_TYPE_P(key) || RB_TYPE_P(key, T_FLOAT)) {
rb_raise(rb_eArgError, "WeakKeyMap must be garbage collectable");
rb_raise(rb_eArgError, "WeakKeyMap keys must be garbage collectable");
UNREACHABLE_RETURN(Qnil);
}