From 8a80bfcfd4d510a20a62e21d8d2f4119cb823d4f Mon Sep 17 00:00:00 2001 From: Jean byroot Boussier Date: Tue, 10 Dec 2019 11:49:39 +0100 Subject: Make Thread#to_s consistent with Method and Proc to_s --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 8d4b28312b..80f6f7825b 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); } -- cgit v1.2.3