ruby-changes:56265
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 23:22:06 +0900 (JST)
Subject: [ruby-changes:56265] Nobuyoshi Nakada: d233f9175c (trunk): [DOC] Re-apply r11000, 41256fd43275c8bf66460510da7ab958a802e2a2
https://git.ruby-lang.org/ruby.git/commit/?id=d233f9175c From d233f9175cdb869a1928234f9c24a9d5d13f437f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 23:17:19 +0900 Subject: [DOC] Re-apply r11000, 41256fd43275c8bf66460510da7ab958a802e2a2 * eval.c (rb_thread_kill): fix Thread#kill docs, which returns the thread object in all cases. From: why the lucky stiff <why@r...> diff --git a/thread.c b/thread.c index caec304..55df74d 100644 --- a/thread.c +++ b/thread.c @@ -2424,15 +2424,13 @@ thread_raise_m(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/thread.c#L2424 /* * call-seq: - * thr.exit -> thr or nil - * thr.kill -> thr or nil - * thr.terminate -> thr or nil + * thr.exit -> thr + * thr.kill -> thr + * thr.terminate -> thr * - * Terminates +thr+ and schedules another thread to be run. - * - * If this thread is already marked to be killed, #exit returns the Thread. - * - * If this is the main thread, or the last thread, exits the process. + * Terminates +thr+ and schedules another thread to be run, returning + * the terminated Thread. If this is the main thread, or the last + * thread, exits the process. */ VALUE -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/