I have this bit of code:
const factors = [_]?u8{
null, //red
null, //green
null, //blue
};
const red: *?u8 = *factors[0];
const green: *?u8 = *factors[1];
const blue: *?u8 = *factors[2];
Is there a way to make this work? I'm getting this error:
main.zig:28:31: error: expected type 'type', found '?u8'
const red: *?u8 = *factors[0];
~~~~~~~^~~