summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-04 06:15:40 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-04 06:15:40 +0000
commit5f45b88173339ff7fdf6015c4868b315ef4978a9 (patch)
tree5458a8c65893c7b6c0c72dcb7f4dd140907f476e
parente3e03787dd72095e350b2dd1112d2437b820e599 (diff)
merges r21276 from trunk into ruby_1_9_1.
* lib/singleton.rb: fix documentation. [ruby-core:21038] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21305 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 7640a9b98..90fe88364 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jan 2 10:20:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/singleton.rb: fix documentation. [ruby-core:21038]
+
Fri Jan 2 22:25:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
* process.c: use sigaction instead of sigset. [ruby-core:21021]
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