From fdf6a184615abab3314664b940ea18bc44de4546 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 9 Apr 2016 14:40:00 -0700 Subject: [PATCH] fix cat example by flushing stdout at end --- example/cat/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/example/cat/main.zig b/example/cat/main.zig index e7971d92a0..97e04b6eae 100644 --- a/example/cat/main.zig +++ b/example/cat/main.zig @@ -27,6 +27,7 @@ pub fn main(args: [][]u8) -> %void { if (!catted_anything) { cat_stream(io.stdin) %% |err| return err; } + io.stdout.flush() %% |err| return err; } fn usage(exe: []u8) -> %void {