After completing Ziglings I decided to move on to the Zig exercises on Exercism. The raindrop exercise has the following function template:
pub fn convert(buffer: []u8, n: u32) []const u8 {
_ = buffer;
_ = n;
@compileError("please implement the convert function");
}
I’m looking for documentation or an example function showing how to modify an array passed as a function parameter.