mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix typo in String#setbyte error message
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user