Skip to content

Commit

Permalink
Less confusing name
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Jul 19, 2020
1 parent 4d093b8 commit 18c78cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def learn(self, s):

states = [dfa.start]

def accept(n):
def seems_right(n):
"""After reading n characters from s, do we seem to be
in the right state?
Expand All @@ -141,7 +141,7 @@ def accept(n):

return self.member(dfa.label(states[n]) + s[n:]) == correct_outcome

n = find_integer(accept)
n = find_integer(seems_right)

# We got to the end without ever finding ourself in a bad
# state, so we must correctly match this string.
Expand Down

0 comments on commit 18c78cd

Please sign in to comment.