rescue StopIteration only.

This commit is contained in:
Tomoyuki Sahara
2014-03-18 19:02:38 +09:00
parent b844b96858
commit 4b4784f96f
+1 -1
View File
@@ -45,7 +45,7 @@ module Kernel
while(true)
yield
end
rescue => StopIteration
rescue StopIteration
nil
end