diff options
author | Kenichi Kamiya <[email protected]> | 2019-08-19 18:00:29 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-08-19 18:00:29 +0900 |
commit | cda8664471b5c2adb9d1ea9563ac38378621d0fd (patch) | |
tree | 20327cca2bcb4b12245e01b8fe2251ff4d9b1317 /sample | |
parent | 355acbafde40c04b8586e1d9185b4965552e00fd (diff) |
Update a sample code (#2387)
Kernel#inspect does not call #to_s now
To follow https://github.com/ruby/ruby/commit/fd7dc23d281f38a71fa7f9c32812cd468c4b1788
Diffstat (limited to 'sample')
-rw-r--r-- | sample/list3.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/list3.rb b/sample/list3.rb index 1d9f04b710..110e405cf9 100644 --- a/sample/list3.rb +++ b/sample/list3.rb @@ -7,7 +7,7 @@ class Point self end - def to_s + def inspect sprintf("%d@%d", @x, @y) end end |