mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 19:40:48 -05:00
Added string specifier in Ex 06
std.fmt.format does not take strings without a string specifier since zig 0.8.0.
This commit is contained in:
parent
e382b01976
commit
f1632554da
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ pub fn main() void {
|
||||||
const major_tom = major ??? tom;
|
const major_tom = major ??? tom;
|
||||||
|
|
||||||
// That's all the problems. Let's see our results:
|
// That's all the problems. Let's see our results:
|
||||||
std.debug.print("d={u} {}{}\n",.{d, laugh, major_tom});
|
std.debug.print("d={u} {s}{s}\n",.{d, laugh, major_tom});
|
||||||
//
|
//
|
||||||
// Keen eyes will notice that we've put a 'u' inside the '{}'
|
// Keen eyes will notice that we've put a 'u' inside the '{}'
|
||||||
// placeholder in the format string above. This tells the
|
// placeholder in the format string above. This tells the
|
||||||
|
|
Loading…
Reference in a new issue