diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-06-13 10:24:11 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-13 10:24:11 +0900 |
| commit | e2e312dbfc82529f74044d33ca30d217f1ef9148 (patch) | |
| tree | 6fda05242eeb2e5e13cb055058bd496deddda4be /mrbgems/mruby-string-ext/src | |
| parent | b8d8f8fdae28b191f398e9da36b6ad7abddb8038 (diff) | |
| parent | db3e6f6ac66c258cb23ecbbbcaa7dc32bdfe4759 (diff) | |
| download | mruby-e2e312dbfc82529f74044d33ca30d217f1ef9148.tar.gz mruby-e2e312dbfc82529f74044d33ca30d217f1ef9148.zip | |
Merge pull request #4503 from shuujii/fix-typo-in-String-setbyte-error-message
Fix typo in `String#setbyte` error message
Diffstat (limited to 'mrbgems/mruby-string-ext/src')
| -rw-r--r-- | mrbgems/mruby-string-ext/src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-string-ext/src/string.c b/mrbgems/mruby-string-ext/src/string.c index 85180516c..d9ebb7392 100644 --- a/mrbgems/mruby-string-ext/src/string.c +++ b/mrbgems/mruby-string-ext/src/string.c @@ -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; |
