aboutsummaryrefslogtreecommitdiff
path: root/example/multiple_files/libc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-14 02:46:37 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-14 02:46:37 -0700
commite411467e1dd4557bb11698f2a5d979dfcbaea444 (patch)
tree8b9bf14a1dee5310a8e18099fc354e1b9b1d2152 /example/multiple_files/libc.zig
parent3d8eb10897a86b2616c6a1aa843b7ebe4134ac51 (diff)
downloadzig-e411467e1dd4557bb11698f2a5d979dfcbaea444.tar.gz
zig-e411467e1dd4557bb11698f2a5d979dfcbaea444.zip
add number literal type
it gets implicitly casted to whatever is needed. closes #24
Diffstat (limited to 'example/multiple_files/libc.zig')
-rw-r--r--example/multiple_files/libc.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/multiple_files/libc.zig b/example/multiple_files/libc.zig
index 19c1106fd6..e2a048b46c 100644
--- a/example/multiple_files/libc.zig
+++ b/example/multiple_files/libc.zig
@@ -1,5 +1,5 @@
#link("c")
extern {
- pub fn puts(s: *mut u8) -> i32;
+ pub fn puts(s: *const u8) -> i32;
pub fn exit(code: i32) -> unreachable;
}