zig/example/multiple_files/foo.zig

12 lines
206 B
Zig
Raw Normal View History

use "std.zig";
2015-12-01 13:53:37 +08:00
// purposefully conflicting function with main.zig
// but it's private so it should be OK
fn private_function() {
print_str("OK 1\n");
}
2015-12-01 13:53:37 +08:00
2015-12-01 17:08:58 +08:00
pub fn print_text() {
2015-12-01 13:53:37 +08:00
private_function();
}