From 0010cb2a68ce72cbc5267786a20435cf8e16f72a Mon Sep 17 00:00:00 2001 From: Gregor Hartmann Date: Fri, 19 Dec 2025 15:46:02 +0100 Subject: [PATCH 1/4] Update URL to, and function name of, fmt string documentation/comment --- exercises/099_formatting.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/099_formatting.zig b/exercises/099_formatting.zig index ef6b84e..7f42361 100644 --- a/exercises/099_formatting.zig +++ b/exercises/099_formatting.zig @@ -13,10 +13,10 @@ // no official documentation for standard library features such // as string formatting. // -// Therefore, the comments for the format() function are the only -// way to definitively learn how to format strings in Zig: +// Therefore, the comments for the std.Io.Writer.print() function are +// the only way to definitively learn how to format strings in Zig: // -// https://github.com/ziglang/zig/blob/master/lib/std/fmt.zig#L33 +// https://codeberg.org/ziglang/zig/src/branch/master/lib/std/Io/Writer.zig#L568 // // Zig already has a very nice selection of formatting options. // These can be used in different ways, but generally to convert From 8cbce258a60b13f6118b8ca1f953032a141101ef Mon Sep 17 00:00:00 2001 From: gregorh Date: Fri, 19 Dec 2025 17:56:02 +0100 Subject: [PATCH 2/4] Update to correct line number Line 537 is the actual start of the documenting comment. --- exercises/099_formatting.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/099_formatting.zig b/exercises/099_formatting.zig index 7f42361..2d47afb 100644 --- a/exercises/099_formatting.zig +++ b/exercises/099_formatting.zig @@ -16,7 +16,7 @@ // Therefore, the comments for the std.Io.Writer.print() function are // the only way to definitively learn how to format strings in Zig: // -// https://codeberg.org/ziglang/zig/src/branch/master/lib/std/Io/Writer.zig#L568 +// https://codeberg.org/ziglang/zig/src/branch/master/lib/std/Io/Writer.zig#L537 // // Zig already has a very nice selection of formatting options. // These can be used in different ways, but generally to convert From acf8c483ef887e5c5c2dd5629bab314613caea6d Mon Sep 17 00:00:00 2001 From: Gregor Hartmann Date: Wed, 24 Dec 2025 01:06:26 +0100 Subject: [PATCH 3/4] change back to original 'format()' sentence --- exercises/099_formatting.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/099_formatting.zig b/exercises/099_formatting.zig index 2d47afb..7bc18e6 100644 --- a/exercises/099_formatting.zig +++ b/exercises/099_formatting.zig @@ -13,7 +13,7 @@ // no official documentation for standard library features such // as string formatting. // -// Therefore, the comments for the std.Io.Writer.print() function are +// Therefore, the comments for the format() function are // the only way to definitively learn how to format strings in Zig: // // https://codeberg.org/ziglang/zig/src/branch/master/lib/std/Io/Writer.zig#L537 From 1c552813d9c9c183697cd3233cc10c59147e5239 Mon Sep 17 00:00:00 2001 From: gregorh Date: Wed, 24 Dec 2025 01:10:39 +0100 Subject: [PATCH 4/4] Formatting --- exercises/099_formatting.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/099_formatting.zig b/exercises/099_formatting.zig index 7bc18e6..be16978 100644 --- a/exercises/099_formatting.zig +++ b/exercises/099_formatting.zig @@ -13,8 +13,8 @@ // no official documentation for standard library features such // as string formatting. // -// Therefore, the comments for the format() function are -// the only way to definitively learn how to format strings in Zig: +// Therefore, the comments for the format() function are the only +// way to definitively learn how to format strings in Zig: // // https://codeberg.org/ziglang/zig/src/branch/master/lib/std/Io/Writer.zig#L537 //