summaryrefslogtreecommitdiff
path: root/lib
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
commite23b63126e9d8d93b1710de7c0061f089a466b20 (patch)
tree5458a8c65893c7b6c0c72dcb7f4dd140907f476e /lib
parentfe2847b22a4946a9da8d71acebb60cf4fc0e9d00 (diff)
merges r21276 from trunk into ruby_1_9_1.
* lib/singleton.rb: fix documentation. [ruby-core:21038] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/singleton.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/singleton.rb b/lib/singleton.rb
index 0d9ade3d5e..3c81b2d3cb 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