diff options
| author | Gabriel Sa <gabriel10043@live.com> | 2026-06-20 19:09:14 -0300 |
|---|---|---|
| committer | Gabriel Sa <gabriel10043@live.com> | 2026-06-20 19:09:14 -0300 |
| commit | dce9c803bfbe4c8fd2add562bbbfd8e16df3dde9 (patch) | |
| tree | 41b385714f3c9aad11cf435a9bdbedd419408433 /exercises | |
| parent | 83a89702b2f3f2f3cab24337d0a2c761c8333704 (diff) | |
fix style mismatch on 065_builtins2.zig
Rename `fetchTheMostBeautifulType` to `FetchTheMostBeautifulType` to
follow Zig's standard naming practice.
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/065_builtins2.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig index 78cd23b..7bb3ac6 100644 --- a/exercises/065_builtins2.zig +++ b/exercises/065_builtins2.zig @@ -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. ", .{ |
