Skip to content

Commit

Permalink
The return type should be bot
Browse files Browse the repository at this point in the history
Because the `#each` call never returns.
  • Loading branch information
soutaro committed Sep 28, 2023
1 parent 3df06b7 commit b50f6fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/enumerator.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ class Enumerator[unchecked out Elem, out Return] < Object
# Enumerator.produce { scanner.scan(PATTERN) }.slice_after { scanner.eos? }.first
# # => ["7", "+", "38", "/", "6"]
#
def self.produce: [T] () { (T? prev) -> T } -> Enumerator[T, nil]
| [T] (T initial) { (T prev) -> T } -> Enumerator[T, nil]
def self.produce: [T] () { (T? prev) -> T } -> Enumerator[T, bot]
| [T] (T initial) { (T prev) -> T } -> Enumerator[T, bot]

# <!--
# rdoc-file=enumerator.c
Expand Down

0 comments on commit b50f6fa

Please sign in to comment.