Skip to content

Commit 1880e61

Browse files
committed
Workaround dspec_tester bug
1 parent db11cca commit 1880e61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

wc.dd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ void main(string[] args)
5151
charCount += lCharCount;
5252
}
5353

54+
const char[37] hr = '-';
55+
5456
if (args.length > 2)
5557
{
56-
writefln("--------------------------------------\n%8s%8s%8s total",
57-
lineCount, wordCount, charCount);
58+
writeln(hr);
59+
writefln("%8s%8s%8s total", lineCount, wordCount, charCount);
5860
}
5961

60-
writeln("--------------------------------------");
62+
writeln(hr);
6163

6264
foreach (word; sort(dictionary.keys))
6365
{

0 commit comments

Comments
 (0)