Skip to content

Commit

Permalink
Even prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
robsimmons committed Nov 18, 2023
1 parent 883374b commit 7fae0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/langauge/terms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function termToString(t: Pattern, needsParens = true): string {
return t.args.length === 0
? name
: needsParens
? `(${name} ${t.args.map((arg) => termToString(arg)).join(' ')})`
: `${name} ${t.args.map((arg) => termToString(arg)).join(' ')}`;
? `(${name} ${t.args.map((arg) => termToString(arg)).join(' ')})`
: `${name} ${t.args.map((arg) => termToString(arg)).join(' ')}`;
}
case 'var':
return t.name;
Expand Down

0 comments on commit 7fae0ea

Please sign in to comment.