Skip to content

Commit 8102abe

Browse files
authored
Merge pull request #2323 from ruby/hash
Fix `Hash.new` type
2 parents 1048dee + 9c4422e commit 8102abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/hash.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,8 +1845,8 @@ class Hash[unchecked out K, unchecked out V] < Object
18451845
# be resized.
18461846
#
18471847
def initialize: (?capacity: int) -> void
1848-
| [V] (V default, ?capacity: int) -> void
1849-
| [A, B] (?capacity: int) { (Hash[A, B] hash, A key) -> B } -> void
1848+
| (V default, ?capacity: int) -> void
1849+
| (?capacity: int) { (Hash[K, V] hash, K key) -> V } -> void
18501850

18511851
# <!--
18521852
# rdoc-file=hash.c

0 commit comments

Comments
 (0)