Explain return inside generator (fixes bug #64102)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329570 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2013-02-24 09:29:27 +00:00
parent 43eb39a60c
commit 19cac543b8

View file

@ -120,7 +120,7 @@ Single digit odd numbers from xrange(): 1 3 5 7 9
<para>
A generator cannot return a value: doing so will result in a compile
error. An empty <command>return</command> statement is valid syntax within
a generator, but meaningless and will do nothing.
a generator and it will terminate the generator.
</para>
</note>