summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-02 14:28:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-02 14:28:02 +0000
commit44f221cefc83dac89a8890703403524dbdcd1012 (patch)
tree7b18b6ff476eda87b52d43303b048b5e0ca21fce
parent1911d4e4ec1011abdc0251381a3e50b3e461e41d (diff)
downloadruby-44f221cefc83dac89a8890703403524dbdcd1012.tar.gz
ruby-44f221cefc83dac89a8890703403524dbdcd1012.tar.xz
ruby-44f221cefc83dac89a8890703403524dbdcd1012.zip
* lib/singleton.rb: fix documentation. [ruby-core:21038]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/singleton.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c4fc85fb..a00528890 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,10 @@ Fri Jan 2 14:11:07 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/socket.c (ipaddr): follow argument change.
+Fri Jan 2 10:20:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/singleton.rb: fix documentation. [ruby-core:21038]
+
Fri Jan 2 06:43:58 2009 NARUSE, Yui <naruse@ruby-lang.org>
* signal.c (rb_signal_buff_size): defined for check whether signal
diff --git a/lib/singleton.rb b/lib/singleton.rb
index 0d9ade3d5..3c81b2d3c 100644
--- a/lib/singleton.rb
+++ b/lib/singleton.rb
@@ -10,8 +10,8 @@
# ``the instance'' can be created.
#
# a,b = Klass.instance, Klass.instance
-# a == b # => true
-# a.new # NoMethodError - new is private ...
+# a == b # => true
+# Klass.new # NoMethodError - new is private ...
#
# * ``The instance'' is created at instantiation time, in other
# words the first call of Klass.instance(), thus