summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 03:01:54 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 03:01:54 +0900
commitbc663549eae0d16a2adb0cb0b1b68d34befe501c (patch)
treebc2bbc4813fbfc722de76f60125e31c3aa0ab86c /src/string.c
parent24839d74b278b5898d2803a926461f5ac2e73711 (diff)
parentbfc522bcd56b0be97c16a80dc00174eca5dd4fcc (diff)
downloadmruby-bc663549eae0d16a2adb0cb0b1b68d34befe501c.tar.gz
mruby-bc663549eae0d16a2adb0cb0b1b68d34befe501c.zip
Merge pull request #1833 from cremno/use-mrb_str_cat_lit
use mrb_str_cat_lit for literals
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 123a1dcb5..011ea91f9 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2522,7 +2522,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str)
continue;
}
}
- mrb_str_buf_cat(mrb, result, "\"", 1);
+ mrb_str_cat_lit(mrb, result, "\"");
return result;
}