From 14c81a6ceff247072fa719accdc6007c4f3d3001 Mon Sep 17 00:00:00 2001 From: felixrabe Date: Fri, 30 May 2025 21:53:24 +0200 Subject: [PATCH] 080: Fix @typeName results in comment --- exercises/080_anonymous_structs.zig | 8 ++++---- 1 file 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 ".Bar()". +// * The value of @typeName(MyBar) is ".Bar()". +// * The value of @typeName(@TypeOf(bar)) is ".Bar()". // // You can also have completely anonymous structs. The value -// of @typeName(struct {}) is "struct:". +// of @typeName(struct {}) is ".__struct_". // const print = @import("std").debug.print;