074_comptime9.patch 405 B

1234567891011
  1. --- exercises/074_comptime9.zig 2023-10-03 22:15:22.125574535 +0200
  2. +++ answers/074_comptime9.zig 2023-10-05 20:04:07.176102462 +0200
  3. @@ -39,7 +39,7 @@
  4. // And here's the function. Note that the return value type
  5. // depends on one of the input arguments!
  6. -fn makeLlamas(count: usize) [count]u8 {
  7. +fn makeLlamas(comptime count: usize) [count]u8 {
  8. var temp: [count]u8 = undefined;
  9. var i = 0;