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
1 changed files with 1 additions and 1 deletions

View File

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