Skip to content

Commit 91a10c0

Browse files
committed
Fix a typo in WeakKeyMap argument error
[Bug #21112]
1 parent 10d06b9 commit 91a10c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

weakmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ wkmap_aset(VALUE self, VALUE key, VALUE val)
859859
TypedData_Get_Struct(self, struct weakkeymap, &weakkeymap_type, w);
860860

861861
if (!FL_ABLE(key) || SYMBOL_P(key) || RB_BIGNUM_TYPE_P(key) || RB_TYPE_P(key, T_FLOAT)) {
862-
rb_raise(rb_eArgError, "WeakKeyMap must be garbage collectable");
862+
rb_raise(rb_eArgError, "WeakKeyMap keys must be garbage collectable");
863863
UNREACHABLE_RETURN(Qnil);
864864
}
865865

0 commit comments

Comments
 (0)