1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Avoid extra spaces in comma-separated lists.

This commit is contained in:
Rob Rix 2015-09-28 22:41:51 -04:00
parent f4f5ad1e86
commit 5fbc3b5102

View File

@ -189,7 +189,7 @@ public enum Syntax<Payload>: CustomDebugStringConvertible, CustomDocConvertible
case let .Abstract(parameters, body):
return .foldDoc([
.Text("λ"),
.join(", ", parameters.map(Doc.init)),
.join(",", parameters.map(Doc.init)),
.Text("."),
.stack(body.map(Doc.init))
], combine: <>)