mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 09:29:59 +00:00
Merge pull request '099: Make hex example match output' (#274) from felixrabe/exercises:felixrabe-patch-5 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/274
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user