summaryrefslogtreecommitdiff
path: root/sample/list2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/list2.rb')
-rw-r--r--sample/list2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/list2.rb b/sample/list2.rb
index 1c2ca08150..914cb8996e 100644
--- a/sample/list2.rb
+++ b/sample/list2.rb
@@ -1,6 +1,6 @@
# Linked list example -- short version
class Point
- def init_object(x, y)
+ def initialize(x, y)
@x = x; @y = y
self
end