aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-14 18:10:25 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-14 18:10:25 -0700
commitf17e20d5fefeb9ce30a08e85c10b9449cf672112 (patch)
tree2907eae05aca64bbab1e7ca0c9c526c1f204848d /std
parent7dd29291853a30973c19867385514b6d807cb644 (diff)
downloadzig-f17e20d5fefeb9ce30a08e85c10b9449cf672112.tar.gz
zig-f17e20d5fefeb9ce30a08e85c10b9449cf672112.zip
instead of *mut and *const, & and &const
closes #33
Diffstat (limited to 'std')
-rw-r--r--std/std.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/std.zig b/std/std.zig
index fbf71f2fd8..b4244b6346 100644
--- a/std/std.zig
+++ b/std/std.zig
@@ -14,7 +14,7 @@ fn syscall3(number: isize, arg1: isize, arg2: isize, arg3: isize) -> isize {
}
// TODO constants for SYS_write and stdout_fileno
-pub fn write(fd: isize, buf: *const u8, count: usize) -> isize {
+pub fn write(fd: isize, buf: &const u8, count: usize) -> isize {
let SYS_write : isize = 1;
return syscall3(SYS_write, fd, buf as isize, count as isize);
}