Skip to content

Commit 0b5fa63

Browse files
authored
Make Thread#to_s consistent with Method and Proc to_s
1 parent 36da0b3 commit 0b5fa63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3180,7 +3180,7 @@ rb_thread_to_s(VALUE thread)
31803180
rb_str_catf(str, "@%"PRIsVALUE, target_th->name);
31813181
}
31823182
if ((loc = threadptr_invoke_proc_location(target_th)) != Qnil) {
3183-
rb_str_catf(str, "@%"PRIsVALUE":%"PRIsVALUE,
3183+
rb_str_catf(str, " %"PRIsVALUE":%"PRIsVALUE,
31843184
RARRAY_AREF(loc, 0), RARRAY_AREF(loc, 1));
31853185
rb_gc_force_recycle(loc);
31863186
}

0 commit comments

Comments
 (0)