mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
fix cat example by flushing stdout at end
This commit is contained in:
parent
7026bed462
commit
fdf6a18461
@ -27,6 +27,7 @@ pub fn main(args: [][]u8) -> %void {
|
|||||||
if (!catted_anything) {
|
if (!catted_anything) {
|
||||||
cat_stream(io.stdin) %% |err| return err;
|
cat_stream(io.stdin) %% |err| return err;
|
||||||
}
|
}
|
||||||
|
io.stdout.flush() %% |err| return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn usage(exe: []u8) -> %void {
|
fn usage(exe: []u8) -> %void {
|
||||||
|
Loading…
Reference in New Issue
Block a user