From e411467e1dd4557bb11698f2a5d979dfcbaea444 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 14 Dec 2015 02:46:37 -0700 Subject: add number literal type it gets implicitly casted to whatever is needed. closes #24 --- example/structs/structs.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/structs') diff --git a/example/structs/structs.zig b/example/structs/structs.zig index e3b364b219..49ffe73f17 100644 --- a/example/structs/structs.zig +++ b/example/structs/structs.zig @@ -22,6 +22,6 @@ struct Foo { fn test_foo(foo : Foo) { if foo.b { - print_str("OK" as string); + print_str("OK\n" as string); } } -- cgit v1.2.3