Skip to content

Commit

Permalink
Fix incorrect type annotation of Random.rand
Browse files Browse the repository at this point in the history
  • Loading branch information
unasuke committed Nov 21, 2022
1 parent 4281c64 commit 224a180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/random.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Random < RBS::Unnamed::Random_Base
def self.rand: () -> Float
| (Integer | ::Range[Integer] max) -> Integer
| (Float | ::Range[Float] max) -> Float
| (::Range[T]) -> T
| [T < Numeric] (::Range[T]) -> T

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

0 comments on commit 224a180

Please sign in to comment.