6 Commits

Author SHA1 Message Date
Chris Boesch a463aafb91 Merge pull request '107: change comment "brackets" -> "braces"' (#471) from xiaolizhi/exercises:text-fix1 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/471
2026-06-21 22:45:37 +02:00
xiaolizhi 11868112c5 107: change comment "brackets" -> "braces"
Signed-off-by: xiaolizhi <vogelwanderung@pm.me>
2026-06-21 21:22:12 +02:00
Chris Boesch d52661fd39 Merge pull request 'fix style mismatch on 065_builtins2.zig' (#469) from garipew/exercises:fix_typo into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/469
2026-06-21 17:51:03 +02:00
Chris Boesch fe1c9fb9bd Merge branch 'main' into fix_typo 2026-06-21 17:29:19 +02:00
Gabriel Sa 935d268280 fix style mismatch on patches/065_builtins2.zig
Rename `fetchTheMostBeautifulType` to `FetchTheMostBeautifulType` to
follow Zig's standard naming practice.
2026-06-21 11:58:29 -03:00
Gabriel Sa dce9c803bf fix style mismatch on 065_builtins2.zig
Rename `fetchTheMostBeautifulType` to `FetchTheMostBeautifulType` to
follow Zig's standard naming practice.
2026-06-20 19:09:14 -03:00
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ const Narcissus = struct {
myself: *Narcissus = undefined,
echo: void = undefined, // Alas, poor Echo!
fn fetchTheMostBeautifulType() type {
fn FetchTheMostBeautifulType() type {
return @This();
}
};
@@ -70,7 +70,7 @@ pub fn main() void {
//
// The fix for this is very subtle, but it makes a big
// difference!
const Type2 = narcissus.fetchTheMostBeautifulType();
const Type2 = narcissus.FetchTheMostBeautifulType();
// Now we print a pithy statement about Narcissus.
print("A {s} loves all {s}es. ", .{
+2 -2
View File
@@ -74,9 +74,9 @@ pub fn main() !void {
// before the parallel processing begins.
std.debug.print("Starting work...\n", .{});
// These curly brackets are very important, they are necessary
// These curly braces are very important, they are necessary
// to enclose the area where the threads are called.
// Without these brackets, the program would not wait for the
// Without these braces, the program would not wait for the
// end of the threads and they would continue to run beyond the
// end of the program.
{
+2 -2
View File
@@ -13,8 +13,8 @@
//
// The fix for this is very subtle, but it makes a big
// difference!
- const Type2 = narcissus.fetchTheMostBeautifulType();
+ const Type2 = Narcissus.fetchTheMostBeautifulType();
- const Type2 = narcissus.FetchTheMostBeautifulType();
+ const Type2 = Narcissus.FetchTheMostBeautifulType();
// Now we print a pithy statement about Narcissus.
print("A {s} loves all {s}es. ", .{