Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub fn testFn(str: []const u8) u8 {
- return str[0] - 'a';
- }
- pub fn main() !void {
- var str: [4]u8 = undefined;
- str[1] = if (testFn("abcd") > 5) 'a' - 10 else '0';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement