From c8a03d29aa834948d777c6e68ccca287ddc05383 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 10 Apr 2008 10:42:14 +0000 Subject: * eval.c (rb_f_loop): Mention StopIteration in the document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ eval.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 735ce2534..a78ff6157 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 10 19:41:00 2008 Akinori MUSHA + + * eval.c (rb_f_loop): Mention StopIteration in the document. + Thu Apr 10 19:23:55 2008 Akinori MUSHA * array.c (rb_ary_pop_m, rb_ary_shift_m): Update documents for diff --git a/eval.c b/eval.c index 4f5f29b0c..f3a080665 100644 --- a/eval.c +++ b/eval.c @@ -984,6 +984,8 @@ loop_i() * break if !line or line =~ /^qQ/ * # ... * end + * + * StopIteration raised in the block breaks the loop. */ static VALUE -- cgit