From 72b5f7a906dbe6e70bf4d9158433c96639fcca4e Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Mon, 27 Jul 2009 05:48:13 -0400 Subject: [PATCH] typo --- generators.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators.html b/generators.html index 888ce72..558b8ec 100755 --- a/generators.html +++ b/generators.html @@ -244,7 +244,7 @@ def build_match_and_apply_functions(pattern, search, replace): if matches_rule(noun): return apply_rule(noun)
    -
  1. Since the rules list is the same as the previous example (really, it is), it should come as no surprise that the plural() function hasn’t changed at all. It’s completely generic; it takes a list of rule functions and calls them in order. It doesn’t care how the rules are defined. In the previous example, they were defined as seperate named functions. Now they are built dynamically by mapping the output of the build_match_and_apply_functions() function onto a list of raw strings. It doesn’t matter; the plural() function still works the same way. +
  2. Since the rules list is the same as the previous example (really, it is), it should come as no surprise that the plural() function hasn’t changed at all. It’s completely generic; it takes a list of rule functions and calls them in order. It doesn’t care how the rules are defined. In the previous example, they were defined as separate named functions. Now they are built dynamically by mapping the output of the build_match_and_apply_functions() function onto a list of raw strings. It doesn’t matter; the plural() function still works the same way.