Skip to content

Commit

Permalink
fix: remove redundant semicolon (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
yf-yang authored Dec 4, 2024
1 parent 26d533d commit 3b9f936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pegen/python_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def alts_uses_locations(self, alts: Sequence[Alt]) -> bool:
def add_return(self, ret_val: str) -> None:
for stmt in self.cleanup_statements:
self.print(stmt)
self.print(f"return {ret_val};")
self.print(f"return {ret_val}")

def visit_Rule(self, node: Rule) -> None:
is_loop = node.is_loop()
Expand Down

0 comments on commit 3b9f936

Please sign in to comment.