summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorJean byroot Boussier <jean.boussier+github@shopify.com>2019-12-10 11:49:39 +0100
committerKoichi Sasada <ko1@atdot.net>2019-12-11 11:59:14 +0900
commit8a80bfcfd4d510a20a62e21d8d2f4119cb823d4f (patch)
tree80f9700e32b2a0cf89ba3b9bbcfe942252b5be87 /thread.c
parent6a7af800dbd45946caaadfc4a1212fc523afe58b (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 8d4b283..80f6f78 100644
--- a/thread.c
+++ b/thread.c
@@ -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);
}