Skip to content

Commit

Permalink
Merge pull request #1709 from sampersand/swesterman/24-01-04/update-R…
Browse files Browse the repository at this point in the history
…ange#step

Update Range#step to accept Numerics and int
  • Loading branch information
soutaro authored Jan 5, 2024
2 parents fea0932 + 7292fd5 commit 298589f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/range.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,8 @@ class Range[out Elem] < Object
#
# Related: Range#%.
#
def step: (?Integer n) { (Elem arg0) -> untyped } -> self
| (?Integer n) -> ::Enumerator[Elem, void]
def step: (?Numeric | int n) -> Enumerator[Elem, self]
| (?Numeric | int n) { (Elem element) -> void } -> self

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

0 comments on commit 298589f

Please sign in to comment.