mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
thread.c: Use 'Class.new' instead of 'Class::new' in doc codes.
patched by Herwin [Fix GH-1700] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d12e82647
commit
1aad241ae8
1 changed files with 2 additions and 2 deletions
4
thread.c
4
thread.c
|
@ -4277,8 +4277,8 @@ thgroup_list(VALUE group)
|
|||
* 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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue