Use mrb_str_cat() instead of mrb_str_cat2() as possible.

This commit is contained in:
Masaki Muranaka
2013-03-23 15:55:55 +09:00
parent acab35a2a5
commit 92821cf2ef
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -525,10 +525,10 @@ inspect_i(mrb_state *mrb, mrb_sym sym, mrb_value v, void *p)
/* need not to show internal data */
if (RSTRING_PTR(str)[0] == '-') { /* first element */
RSTRING_PTR(str)[0] = '#';
mrb_str_cat2(mrb, str, " ");
mrb_str_cat(mrb, str, " ", 1);
}
else {
mrb_str_cat2(mrb, str, ", ");
mrb_str_cat(mrb, str, ", ", 2);
}
s = mrb_sym2name_len(mrb, sym, &len);
mrb_str_cat(mrb, str, s, len);