ruby-changes:47897
From: sonots <ko1@a...>
Date: Mon, 25 Sep 2017 15:05:58 +0900 (JST)
Subject: [ruby-changes:47897] sonots:r60016 (trunk): thread.c: Use 'Class.new' instead of 'Class::new' in doc codes.
sonots 2017-09-25 15:05:52 +0900 (Mon, 25 Sep 2017) New Revision: 60016 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60016 Log: thread.c: Use 'Class.new' instead of 'Class::new' in doc codes. patched by Herwin [Fix GH-1700] Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 60015) +++ thread.c (revision 60016) @@ -4277,8 +4277,8 @@ thgroup_list(VALUE group) https://github.com/ruby/ruby/blob/trunk/thread.c#L4277 * New threads can still be started in an enclosed ThreadGroup. * * ThreadGroup::Default.enclose #=> #<ThreadGroup:0x4029d914> - * thr = Thread::new { Thread.stop } #=> #<Thread:0x402a7210 sleep> - * tg = ThreadGroup::new #=> #<ThreadGroup:0x402752d4> + * thr = Thread.new { Thread.stop } #=> #<Thread:0x402a7210 sleep> + * tg = ThreadGroup.new #=> #<ThreadGroup:0x402752d4> * tg.add thr * #=> ThreadError: can't move from the enclosed thread group */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/