Browse Source

found a Zig enum with a method

David Forester 4 years ago
parent
commit
2e6afa0582
1 changed files with 3 additions and 0 deletions
  1. 3 0
      exercises/48_methods2.zig

+ 3 - 0
exercises/48_methods2.zig

@@ -66,3 +66,6 @@ fn visitElephants(first_elephant: *Elephant) void {
 // name or alias in a comment below this one and make a
 // pull request on GitHub for a piece of eternal Ziglings
 // glory. The first five (5) PRs will be accepted!
+
+drforester - I found one in the Zig source. See link below:
+https://github.com/ziglang/zig/blob/041212a41cfaf029dc3eb9740467b721c76f406c/src/Compilation.zig#L2495