Browse Source

099: Make hex example match output

felixrabe 2 months ago
parent
commit
69ad718446
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/099_formatting.zig

+ 1 - 1
exercises/099_formatting.zig

@@ -60,7 +60,7 @@
 // variety of formatting instructions. It's basically a tiny
 // variety of formatting instructions. It's basically a tiny
 // language of its own. Here's a numeric example:
 // language of its own. Here's a numeric example:
 //
 //
-//     print("Catch-{x:0>4}.", .{twenty_two});
+//     print("Catch-0x{x:0>4}.", .{twenty_two});
 //
 //
 // This formatting instruction outputs a hexadecimal number with
 // This formatting instruction outputs a hexadecimal number with
 // leading zeros:
 // leading zeros: