diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-06-15 19:41:04 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-06-15 19:41:04 +0900 |
| commit | 9e378b451fe63c9e5b2ec9e55bf028b5f884174a (patch) | |
| tree | a14d3be4c5475fd059c22e30b12aab72e7ef451f /mrbgems/mruby-class-ext/src | |
| parent | ab5ffb308b65a365d5f68662f30b223ccbde3b03 (diff) | |
| download | mruby-9e378b451fe63c9e5b2ec9e55bf028b5f884174a.tar.gz mruby-9e378b451fe63c9e5b2ec9e55bf028b5f884174a.zip | |
Fix index in error message of `Struct#[]`
Before this patch:
$ bin/mruby -e 'Struct.new(:a,:b).new[-3]'
#=> offset -1 too small for struct(size:2) (IndexError)
After this patch (same as Ruby):
$ bin/mruby -e 'Struct.new(:a,:b).new[-3]'
#=> offset -3 too small for struct(size:2) (IndexError)
Diffstat (limited to 'mrbgems/mruby-class-ext/src')
0 files changed, 0 insertions, 0 deletions
