From 6e959da0712f92653d0dc9ed438398729df3dc50 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 2 Jan 2009 14:28:02 +0000 Subject: * 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 --- ChangeLog | 4 ++++ lib/singleton.rb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c4fc85fba..a00528890a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -53,6 +53,10 @@ Fri Jan 2 14:11:07 2009 Tanaka Akira * ext/socket/socket.c (ipaddr): follow argument change. +Fri Jan 2 10:20:24 2009 Yukihiro Matsumoto + + * lib/singleton.rb: fix documentation. [ruby-core:21038] + Fri Jan 2 06:43:58 2009 NARUSE, Yui * signal.c (rb_signal_buff_size): defined for check whether signal 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 -- cgit v1.2.3