diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-28 00:50:26 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-28 00:50:26 +0900 |
| commit | 5bd90b59a9709c843438a04cfeded97dbd6e040a (patch) | |
| tree | 6c077504627a036aa01f959db5fdadc2032fc083 /src/hash.c | |
| parent | d1526b0409a31667de95fbc3b0da23a62ca8bfea (diff) | |
| parent | bd0244d067a9523c98a071c49214a03494c8b20b (diff) | |
| download | mruby-5bd90b59a9709c843438a04cfeded97dbd6e040a.tar.gz mruby-5bd90b59a9709c843438a04cfeded97dbd6e040a.zip | |
Merge pull request #1757 from cubicdaiya/issues/use_mrb_str_cat_lit
use mrb_str_cat_lit() intead of mrb_str_cat
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.c b/src/hash.c index 566728253..9d7927bb9 100644 --- a/src/hash.c +++ b/src/hash.c @@ -672,7 +672,7 @@ inspect_hash(mrb_state *mrb, mrb_value hash, int recur) ai = mrb_gc_arena_save(mrb); - if (RSTRING_LEN(str) > 1) mrb_str_cat(mrb, str, ", ", 2); + if (RSTRING_LEN(str) > 1) mrb_str_cat_lit(mrb, str, ", "); str2 = mrb_inspect(mrb, kh_key(h,k)); mrb_str_append(mrb, str, str2); |
