072_comptime7.patch 455 B

1234567891011
  1. --- exercises/072_comptime7.zig 2023-10-03 22:15:22.125574535 +0200
  2. +++ answers/072_comptime7.zig 2023-10-05 20:04:07.169435669 +0200
  3. @@ -35,7 +35,7 @@
  4. // at compile time.
  5. //
  6. // Please fix this to loop once per "instruction":
  7. - ??? (i < instructions.len) : (???) {
  8. + inline while (i < instructions.len) : (i += 3) {
  9. // This gets the digit from the "instruction". Can you
  10. // figure out why we subtract '0' from it?