From 1aad241ae87bbcc38f542ae543d021a6e489beaf Mon Sep 17 00:00:00 2001 From: sonots Date: Mon, 25 Sep 2017 06:05:52 +0000 Subject: 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 --- thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 4b863eb3e6..b39d3cba1c 100644 --- a/thread.c +++ b/thread.c @@ -4277,8 +4277,8 @@ thgroup_list(VALUE group) * New threads can still be started in an enclosed ThreadGroup. * * ThreadGroup::Default.enclose #=> # - * thr = Thread::new { Thread.stop } #=> # - * tg = ThreadGroup::new #=> # + * thr = Thread.new { Thread.stop } #=> # + * tg = ThreadGroup.new #=> # * tg.add thr * #=> ThreadError: can't move from the enclosed thread group */ -- cgit v1.2.3