aboutsummaryrefslogtreecommitdiff
path: root/examples/alloc.ct
diff options
context:
space:
mode:
Diffstat (limited to 'examples/alloc.ct')
-rw-r--r--examples/alloc.ct4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/alloc.ct b/examples/alloc.ct
index 5f11bb7..11eed78 100644
--- a/examples/alloc.ct
+++ b/examples/alloc.ct
@@ -1,8 +1,8 @@
/* from c bindings */
-pub alloc(s usize) *void
+pub alloc(s: usize) *void
{
- p *u8 = malloc(s);
+ p: *u8 = malloc(s);
assert(p, "memory allocation failed\n");
return p;
}