diff --git a/generators.html b/generators.html index bc303e0..83df95c 100644 --- a/generators.html +++ b/generators.html @@ -285,7 +285,7 @@ finally:
Now you’re ready to learn about generators. +
Wouldn’t it be grand to have a generic plural() function that parses the rules file? Get rules, check for a match, apply appropriate transformation, go to next rule. That’s all the plural() function has to do, and that’s all the plural() function should do.
def rules():