mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
43eb39a60c
commit
19cac543b8
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue