Skip to content

Commit

Permalink
Fix Kernel.p() and Kernel.pp() to return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed May 25, 2023
1 parent f41cbb2 commit ecf57f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/kernel.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,9 @@ module Kernel : BasicObject
# [0..4, 0..4, 0..4]
#
def self?.p: [T] (T arg0) -> T
| (*untyped arg0) -> Array[untyped]
| (untyped, untyped, *untyped) -> Array[untyped]
| () -> nil


# <!--
# rdoc-file=lib/pp.rb
Expand All @@ -1252,7 +1254,8 @@ module Kernel : BasicObject
# pp returns argument(s).
#
def self?.pp: [T] (T arg0) -> T
| (*untyped arg0) -> Array[untyped]
| (untyped, untyped, *untyped) -> Array[untyped]
| () -> nil

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

0 comments on commit ecf57f6

Please sign in to comment.