054_manypointers.patch 502 B

1234567891011
  1. --- exercises/054_manypointers.zig 2023-10-22 13:59:15.818523309 +0200
  2. +++ answers/054_manypointers.zig 2023-10-22 14:05:24.095241143 +0200
  3. @@ -33,7 +33,7 @@
  4. // we can CONVERT IT TO A SLICE. (Hint: we do know the length!)
  5. //
  6. // Please fix this line so the print statement below can print it:
  7. - const zen12_string: []const u8 = zen_manyptr;
  8. + const zen12_string: []const u8 = zen_manyptr[0..21];
  9. // Here's the moment of truth!
  10. std.debug.print("{s}\n", .{zen12_string});