mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 17:39:58 +00:00
Added string specifier in format strings (#3)
This is now required in current versions of Zig.
This commit is contained in:
@@ -30,5 +30,5 @@ pub fn main() void {
|
||||
lang[2] = letters[???];
|
||||
|
||||
// We want to "Program in Zig!" of course:
|
||||
std.debug.print("Program in {}!\n", .{lang});
|
||||
std.debug.print("Program in {s}!\n", .{lang});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user