Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/kernel.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ module Kernel : BasicObject
# When you define #<=>, you can include Comparable to gain the methods #<=, #<,
# #==, #>=, #> and #between?.
#
def <=>: (untyped other) -> 0?
def <=>: (untyped other) -> Integer?

# <!--
# rdoc-file=object.c
Expand Down
2 changes: 1 addition & 1 deletion test/stdlib/Kernel_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def test_op_cmp
obj = JustKernel.new.__with_object_methods(:==) # needed because <=> has an implicit dependency on it.

with_untyped.and obj do |other|
assert_send_type '(untyped) -> 0?',
assert_send_type '(untyped) -> Integer?',
obj, :<=>, other
end
end
Expand Down
Loading