diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-29 17:01:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-29 17:01:52 +0900 |
| commit | b05d736b49a6d3a99b7f75c74ffd9b6613c453d3 (patch) | |
| tree | cae1cfe223f130dffe344cc533e3873f52802aa8 /mrblib/array.rb | |
| parent | 13a2cc3e5d27c33db7f4cf06ece4c44a79c79c53 (diff) | |
| download | mruby-b05d736b49a6d3a99b7f75c74ffd9b6613c453d3.tar.gz mruby-b05d736b49a6d3a99b7f75c74ffd9b6613c453d3.zip | |
update mrblib/*.rb files to conform (some of) Rubocop checks
Diffstat (limited to 'mrblib/array.rb')
| -rw-r--r-- | mrblib/array.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrblib/array.rb b/mrblib/array.rb index bd8d5930f..83a42c62d 100644 --- a/mrblib/array.rb +++ b/mrblib/array.rb @@ -34,7 +34,7 @@ class Array return to_enum :each_index unless block_given? idx = 0 - while(idx < length) + while idx < length block.call(idx) idx += 1 end @@ -75,7 +75,7 @@ class Array self[size - 1] = nil # allocate idx = 0 - while(idx < size) + while idx < size self[idx] = (block)? block.call(idx): obj idx += 1 end |
