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 */