diff options
author | Jean byroot Boussier <jean.boussier+github@shopify.com> | 2019-12-10 11:49:39 +0100 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-12-11 11:59:14 +0900 |
commit | 8a80bfcfd4d510a20a62e21d8d2f4119cb823d4f (patch) | |
tree | 80f9700e32b2a0cf89ba3b9bbcfe942252b5be87 /thread.c | |
parent | 6a7af800dbd45946caaadfc4a1212fc523afe58b (diff) |
Make Thread#to_s consistent with Method and Proc to_s
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2738
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3181,7 +3181,7 @@ rb_thread_to_s(VALUE thread) rb_str_catf(str, "@%"PRIsVALUE, target_th->name); } if ((loc = threadptr_invoke_proc_location(target_th)) != Qnil) { - rb_str_catf(str, "@%"PRIsVALUE":%"PRIsVALUE, + rb_str_catf(str, " %"PRIsVALUE":%"PRIsVALUE, RARRAY_AREF(loc, 0), RARRAY_AREF(loc, 1)); rb_gc_force_recycle(loc); } |