summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2019-08-19 18:00:29 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-19 18:00:29 +0900
commitcda8664471b5c2adb9d1ea9563ac38378621d0fd (patch)
tree20327cca2bcb4b12245e01b8fe2251ff4d9b1317 /sample
parent355acbafde40c04b8586e1d9185b4965552e00fd (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.rb2
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