Skip to content

Commit abb6427

Browse files
authored
Merge pull request swiftlang#215 from google/fix-buffering
Flush stdout before exiting.
2 parents e3e0ae0 + 456d2ca commit abb6427

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/swift-format/Run.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func formatMain(
5252

5353
do {
5454
try formatter.format(contentsOf: url, to: &stdoutStream)
55+
stdoutStream.flush()
5556
} catch {
5657
fatalError("\(error)")
5758
}

0 commit comments

Comments
 (0)