mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
11 lines
502 B
Diff
11 lines
502 B
Diff
--- exercises/054_manypointers.zig 2023-10-22 13:59:15.818523309 +0200
|
|
+++ answers/054_manypointers.zig 2023-10-22 14:05:24.095241143 +0200
|
|
@@ -33,7 +33,7 @@
|
|
// we can CONVERT IT TO A SLICE. (Hint: we do know the length!)
|
|
//
|
|
// Please fix this line so the print statement below can print it:
|
|
- const zen12_string: []const u8 = zen_manyptr;
|
|
+ const zen12_string: []const u8 = zen_manyptr[0..21];
|
|
|
|
// Here's the moment of truth!
|
|
std.debug.print("{s}\n", .{zen12_string});
|