aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-10 16:45:01 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-11-10 16:45:01 -0500
commitdf89291d1ca04a5891dd48ea5f6d1a99b6006bcb (patch)
tree83970de0fdaa7383c11f64efceff7f88d6fd9cd9 /example
parente9d7623e1f0300b1b652373f2e0e7b605eaf13d1 (diff)
parent019f18058bb74816f8754de63a219347597e06da (diff)
downloadzig-df89291d1ca04a5891dd48ea5f6d1a99b6006bcb.tar.gz
zig-df89291d1ca04a5891dd48ea5f6d1a99b6006bcb.zip
Merge remote-tracking branch 'origin/master' into llvm6
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 9027122913..00455968be 100644
--- a/example/cat/main.zig
+++ b/example/cat/main.zig
@@ -3,9 +3,9 @@ const io = std.io;
const mem = std.mem;
const os = std.os;
const warn = std.debug.warn;
+const allocator = std.debug.global_allocator;
pub fn main() -> %void {
- const allocator = &std.debug.global_allocator;
var args_it = os.args();
const exe = %return unwrapArg(??args_it.next(allocator));
var catted_anything = false;