aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/14-include.zc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/learn/14-include.zc')
-rw-r--r--examples/learn/14-include.zc10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/learn/14-include.zc b/examples/learn/14-include.zc
index c126389..f3be88c 100644
--- a/examples/learn/14-include.zc
+++ b/examples/learn/14-include.zc
@@ -1,7 +1,7 @@
-include "src/lib/std.zc";
+namespace;
+include rt, std;
fn main() {
- let s = readfile("tests/data/hi.txt");
- put_n(len_w(s)); put_c(10);
- free(d*s);
- return 0;
+ let s = rt.readfile("tests/data/hi.txt");
+ rt.put_n(rt.len_w(s)); rt.put_c(10);
+ rt.free(s);
}