repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
10d06b9
)
Fix a typo in WeakKeyMap argument error
author
Jean Boussier
<
[email protected]
>
Tue, 4 Feb 2025 20:54:53 +0000
(4 21:54 +0100)
committer
Jean Boussier
<
[email protected]
>
Tue, 4 Feb 2025 21:25:17 +0000
(4 22:25 +0100)
[Bug #21112]
weakmap.c
patch
|
blob
|
blame
|
history
diff --git
a/weakmap.c
b/weakmap.c
index
f8a6ae3
..
2ebf7d2
100644
(file)
--- a/
weakmap.c
+++ b/
weakmap.c
@@
-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);
}