Fix typo in String#setbyte error message

This commit is contained in:
KOBAYASHI Shuji
2019-06-12 20:45:27 +09:00
parent b8d8f8fdae
commit db3e6f6ac6
+1 -1
View File
@@ -29,7 +29,7 @@ mrb_str_setbyte(mrb_state *mrb, mrb_value str)
len = RSTRING_LEN(str);
if (pos < -len || len <= pos)
mrb_raisef(mrb, E_INDEX_ERROR, "index %S is out of array", mrb_fixnum_value(pos));
mrb_raisef(mrb, E_INDEX_ERROR, "index %S out of string", mrb_fixnum_value(pos));
if (pos < 0)
pos += len;