mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use mrb_str_cat_lit for literals
This commit is contained in:
+1
-1
@@ -596,7 +596,7 @@ mrb_obj_iv_inspect(mrb_state *mrb, struct RObject *obj)
|
||||
const char *cn = mrb_obj_classname(mrb, mrb_obj_value(obj));
|
||||
mrb_value str = mrb_str_buf_new(mrb, 30);
|
||||
|
||||
mrb_str_buf_cat(mrb, str, "-<", 2);
|
||||
mrb_str_cat_lit(mrb, str, "-<");
|
||||
mrb_str_cat_cstr(mrb, str, cn);
|
||||
mrb_str_cat_lit(mrb, str, ":");
|
||||
mrb_str_concat(mrb, str, mrb_ptr_to_str(mrb, obj));
|
||||
|
||||
Reference in New Issue
Block a user