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:
parent
355acbafde
commit
cda8664471
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Point
|
|||
self
|
||||
end
|
||||
|
||||
def to_s
|
||||
def inspect
|
||||
sprintf("%d@%d", @x, @y)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue