summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index bd7fde55f6..097a998cfe 100644
--- a/array.c
+++ b/array.c
@@ -1233,7 +1233,7 @@ recursive_join(VALUE ary, VALUE argp, int recur)
{
VALUE *arg = (VALUE *)argp;
if (recur) {
- return rb_str_new2("[...]");
+ return rb_usascii_str_new2("[...]");
}
return rb_ary_join(arg[0], arg[1]);
}
@@ -1337,7 +1337,7 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
static VALUE
rb_ary_inspect(VALUE ary)
{
- if (RARRAY_LEN(ary) == 0) return rb_str_new2("[]");
+ if (RARRAY_LEN(ary) == 0) return rb_usascii_str_new2("[]");
return rb_exec_recursive(inspect_ary, ary, 0);
}