1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update a sample code (#2387)

Kernel#inspect does not call #to_s now

To follow fd7dc23d28
This commit is contained in:
Kenichi Kamiya 2019-08-19 18:00:29 +09:00 committed by Takashi Kokubun
parent 355acbafde
commit cda8664471

View file

@ -7,7 +7,7 @@ class Point
self
end
def to_s
def inspect
sprintf("%d@%d", @x, @y)
end
end