diff options
| author | felixrabe <felixrabe@noreply.codeberg.org> | 2025-05-30 21:53:24 +0200 |
|---|---|---|
| committer | felixrabe <felixrabe@noreply.codeberg.org> | 2025-05-30 21:54:25 +0200 |
| commit | 14c81a6ceff247072fa719accdc6007c4f3d3001 (patch) | |
| tree | 2e64ad7a37605aa620b29f9dbe18c18e760c13cd /exercises | |
| parent | fd764e90ab657f352af1440b6d9953edc113a5e5 (diff) | |
080: Fix @typeName results in comment
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/080_anonymous_structs.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/080_anonymous_structs.zig b/exercises/080_anonymous_structs.zig index 55dedd4..4e3ce84 100644 --- a/exercises/080_anonymous_structs.zig +++ b/exercises/080_anonymous_structs.zig @@ -19,12 +19,12 @@ // const MyBar = Bar(); // store the struct type // const bar = Bar() {}; // create instance of the struct // -// * The value of @typeName(Bar()) is "Bar()". -// * The value of @typeName(MyBar) is "Bar()". -// * The value of @typeName(@TypeOf(bar)) is "Bar()". +// * The value of @typeName(Bar()) is "<filename>.Bar()". +// * The value of @typeName(MyBar) is "<filename>.Bar()". +// * The value of @typeName(@TypeOf(bar)) is "<filename>.Bar()". // // You can also have completely anonymous structs. The value -// of @typeName(struct {}) is "struct:<position in source>". +// of @typeName(struct {}) is "<filename>.<function>__struct_<nnn>". // const print = @import("std").debug.print; |
