summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-06-11 15:27:48 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-06-11 15:27:48 +0200
commitd1ffdd16e8d70aa713d3dd15374140dfa0e48d2d (patch)
tree7cd9cc8f9d5870af684df7bd16382146f9c54d79 /exercises
parent37698736ce69113a9e007530f4c3fb6113a79e1e (diff)
parent14c81a6ceff247072fa719accdc6007c4f3d3001 (diff)
Merge pull request '080: Fix @typeName results in comment' (#271) from felixrabe/exercises:felixrabe-patch-4 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/271
Diffstat (limited to 'exercises')
-rw-r--r--exercises/080_anonymous_structs.zig8
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;