mruby-proc-ext/proc.c (mrb_proc_inspect): update the format.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-02 17:56:13 +09:00
parent e7e22ec6a8
commit ea1bc39b52
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ mrb_proc_inspect(mrb_state *mrb, mrb_value self)
const mrb_irep *irep = p->body.irep;
const char *filename;
int32_t line;
mrb_str_cat_lit(mrb, str, "@");
mrb_str_cat_lit(mrb, str, " ");
filename = mrb_debug_get_filename(mrb, irep, 0);
mrb_str_cat_cstr(mrb, str, filename ? filename : "-");
+1 -1
View File
@@ -30,7 +30,7 @@ assert('Proc#inspect') do
else
file = line = "-"
end
assert_match "#<Proc:0x*@#{file}:#{line}>", ins
assert_match "#<Proc:0x* #{file}:#{line}>", ins
end
assert('Proc#parameters') do