spiffied up intro text in generators.html#generators [thanks A.H.]

This commit is contained in:
Mark Pilgrim
2009-05-16 01:42:02 -04:00
parent 9f96f01e07
commit 2d484b2ae2
+1 -1
View File
@@ -285,7 +285,7 @@ finally:
<h2 id=generators>Generators</h2>
<p>Now you&#8217;re ready to learn about generators.
<p>Wouldn&#8217;t it be grand to have a generic <code>plural()</code> function that parses the rules file? Get rules, check for a match, apply appropriate transformation, go to next rule. That&#8217;s all the <code>plural()</code> function has to do, and that&#8217;s all the <code>plural()</code> function should do.
<p class=d>[<a href=examples/plural5.py>download <code>plural5.py</code></a>]
<pre><code>def rules():