Improve comment clarity

This commit is contained in:
James Fitzgerald 2022-07-02 14:38:25 -04:00 committed by xs5871
parent a5dc665ddc
commit 103e51eb7f

View File

@ -119,8 +119,7 @@ class TextReplacement(Module):
# we've matched all of the characters in a phrase to be substituted # we've matched all of the characters in a phrase to be substituted
if rule.to_substitute.index_at_end(): if rule.to_substitute.index_at_end():
rule.restart() rule.restart()
# set the index of to_substitute to where the # set the phrase indexes to where they differ
# substitution phrase and phrase to substitute differ
# so that only the characters that differ are replaced # so that only the characters that differ are replaced
for character in rule.to_substitute._characters: for character in rule.to_substitute._characters:
if ( if (