Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornregnell committed Feb 7, 2024
1 parent 6aa833a commit c0502cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/04-Show.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object Show:
else
sb.append(EntLink(e, rt).show)
sb.append("(\n")
loop(sub.elems, indentLevel + 1)
loop(sub.elems, indentLevel + 1) // not tail-recursive
sb.append(indent(indentLevel) + "),\n")
loop(elems.drop(1), indentLevel)
case e =>
Expand All @@ -53,7 +53,6 @@ object Show:
end loop
loop(m.elems, 1)
sb.append(")")
//m.elems.map(_.show).mkString("Model(\n ",",\n ","\n)")
sb.toString

given showElemType: Show[ElemType] with
Expand Down

0 comments on commit c0502cb

Please sign in to comment.