diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-02 14:28:02 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-02 14:28:02 +0000 |
commit | 6e959da0712f92653d0dc9ed438398729df3dc50 (patch) | |
tree | 7b18b6ff476eda87b52d43303b048b5e0ca21fce /lib/singleton.rb | |
parent | f408202de2f417e6cb44089fcb2f919bff2253dc (diff) | |
download | ruby-6e959da0712f92653d0dc9ed438398729df3dc50.tar.gz |
* lib/singleton.rb: fix documentation. [ruby-core:21038]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/singleton.rb')
-rw-r--r-- | lib/singleton.rb | 4 |
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 |