Skip to content

Commit

Permalink
Update src/latexify/codegen/function_codegen.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zibing Zhang <[email protected]>
  • Loading branch information
Lucybean-hi and ZibingZhang authored Dec 11, 2022
1 parent c638f44 commit e2abf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/latexify/codegen/function_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def visit_Match(self, node: ast.Match) -> str:
case_latexes.append(body_latex + r", & \mathrm{if} \ " + cond_latex)
else:
case_latexes.append(
self.visit(node.cases[-1].body[0]) + r", & \mathrm{otherwise}"
self.visit(case.body[0]) + r", & \mathrm{otherwise}"
)

latex = (
Expand Down

0 comments on commit e2abf8c

Please sign in to comment.