diff --git a/iterators.html b/iterators.html index 38dc87e..0c8227d 100755 --- a/iterators.html +++ b/iterators.html @@ -258,7 +258,7 @@ rules = LazyRules() self.cache = [] ②
LazyRules class, open the pattern file but don’t read anything from it. (That comes later.)
-__next__() method) as you read lines from the pattern file.
+__next__() method) as you read lines from the pattern file.
Before we continue, let’s take a closer look at rules_filename. It’s not defined within the __iter__() method. In fact, it’s not defined within any method. It’s defined at the class level. It’s a class variable, and although you can access it just like an instance variable (self.rules_filename), it is shared across all instances of the LazyRules class.