summaryrefslogtreecommitdiffhomepage
path: root/mrblib/kernel.rb
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-03-18 19:02:38 +0900
committerTomoyuki Sahara <[email protected]>2014-03-18 19:02:38 +0900
commit4b4784f96f4d4c926c663daa133025448a57758b (patch)
treee4a648d6adb03401c1bbf91558914908d5d774c8 /mrblib/kernel.rb
parentb844b968581d19c54c2076e1d33531808cc0e6a5 (diff)
downloadmruby-4b4784f96f4d4c926c663daa133025448a57758b.tar.gz
mruby-4b4784f96f4d4c926c663daa133025448a57758b.zip
rescue StopIteration only.
Diffstat (limited to 'mrblib/kernel.rb')
-rw-r--r--mrblib/kernel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/kernel.rb b/mrblib/kernel.rb
index fd4dc04ac..81d7acf5d 100644
--- a/mrblib/kernel.rb
+++ b/mrblib/kernel.rb
@@ -45,7 +45,7 @@ module Kernel
while(true)
yield
end
- rescue => StopIteration
+ rescue StopIteration
nil
end