aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-21 21:02:01 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-21 21:02:01 -0400
commit3d780cf2ef8391b6b48124f599858ee99ddc4cdc (patch)
tree5e073a9784a6fa4699e0eca9a3eb0148756e6722 /example
parentb2917e6be09138adcf7cfdab51a1909a30eec320 (diff)
parent3dd1026c8bcb438228c336add7cc4014552aa05c (diff)
downloadzig-3d780cf2ef8391b6b48124f599858ee99ddc4cdc.tar.gz
zig-3d780cf2ef8391b6b48124f599858ee99ddc4cdc.zip
Merge branch 'shawnl-path_max'
This does a proof of concept of changing most file system APIs to not require an allocator and remove the possibility of failure via OutOfMemory. This also does most of the work of #534.
Diffstat (limited to 'example')
-rw-r--r--example/cat/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/cat/main.zig b/example/cat/main.zig
index 27690d2695..120ba1da39 100644
--- a/example/cat/main.zig
+++ b/example/cat/main.zig
@@ -20,7 +20,7 @@ pub fn main() !void {
} else if (arg[0] == '-') {
return usage(exe);
} else {
- var file = os.File.openRead(allocator, arg) catch |err| {
+ var file = os.File.openRead(arg) catch |err| {
warn("Unable to open file: {}\n", @errorName(err));
return err;
};