From 7fb5ca420d66137d6d0513fc0126215ffd12e6c1 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 6 May 2014 19:36:28 -0700 Subject: [PATCH] Fix formatting of types --- formatter.d | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/formatter.d b/formatter.d index 2d8476d..5adf73d 100644 --- a/formatter.d +++ b/formatter.d @@ -682,16 +682,11 @@ class Formatter(Sink) void format(const Type type) { - bool first = true; foreach (constructor; type.typeConstructors) { - if (first) - sink.put(" "); - first = false; sink.put(str(constructor)); + sink.put(" "); } - if (type.typeConstructors.length > 0) - sink.put(" "); format(type.type2); foreach (suffix; type.typeSuffixes) {