mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
11 lines
400 B
Diff
11 lines
400 B
Diff
--- exercises/061_coercions.zig 2023-10-03 22:15:22.125574535 +0200
|
|
+++ answers/061_coercions.zig 2023-10-05 20:04:07.119434735 +0200
|
|
@@ -67,7 +67,7 @@
|
|
pub fn main() void {
|
|
var letter: u8 = 'A';
|
|
|
|
- const my_letter: ??? = &letter;
|
|
+ const my_letter: ?*[1]u8 = &letter;
|
|
// ^^^^^^^
|
|
// Your type here.
|
|
// Must coerce from &letter (which is a *u8).
|