Skip to content

Commit

Permalink
Updated the signature for Kernel#Float
Browse files Browse the repository at this point in the history
  • Loading branch information
sampersand committed Aug 18, 2023
1 parent 2250961 commit a61804d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/kernel.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ module Kernel : BasicObject
# Float(nil) #=> TypeError: can't convert nil into Float
# Float("123.0_badstring", exception: false) #=> nil
#
def self?.Float: (Numeric | String x, ?exception: bool exception) -> Float
def self?.Float: (_ToF arg, exception: false) -> Float?
| (_ToF arg, ?exception: bool) -> Float
| (untyped, exception: false) -> nil

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

0 comments on commit a61804d

Please sign in to comment.