diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-12-08 20:15:55 +0100 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2025-12-08 20:15:55 +0100 |
| commit | e767de2337c9600e83884749b403886b8b2a8f6a (patch) | |
| tree | 0b5a20112cb1908ddaf4c9678a79b0c293ec1a17 | |
| parent | 739d5ccce8b8ea0331ed3fac4d4a969e3f7831c6 (diff) | |
| parent | 0c9d5abccdbf6745ed60d9ae12d7a86e62de72ce (diff) | |
Merge pull request 'restrict parameter type in 'maximumNarcissism' in exercise 65' (#332) from Castanearie/ziglings:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/332
| -rw-r--r-- | exercises/065_builtins2.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/065_builtins2.zig b/exercises/065_builtins2.zig index 067f07c..2d13994 100644 --- a/exercises/065_builtins2.zig +++ b/exercises/065_builtins2.zig @@ -146,7 +146,7 @@ pub fn main() void { // // We'll be seeing @typeName again in Exercise 070. For now, you can // see that it takes a Type and returns a u8 "string". -fn maximumNarcissism(myType: anytype) []const u8 { +fn maximumNarcissism(myType: type) []const u8 { const indexOf = @import("std").mem.indexOf; // Turn "065_builtins2.Narcissus" into "Narcissus" |
