Skip to content

Commit 8057422

Browse files
committed
Fix typing
``` map.getkey(123) => nil ```
1 parent 9d05f78 commit 8057422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/ObjectSpace_WeakKeyMap_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def test_getkey
7676
map["foo"] = 123
7777

7878
assert_send_type(
79-
"(::Integer) -> ::String",
80-
map, :getkey, 123
79+
"(::String) -> ::String",
80+
map, :getkey, "foo"
8181
)
8282
assert_send_type(
8383
"(::String) -> nil",

0 commit comments

Comments
 (0)