diff options
| author | Chris Boesch <[email protected]> | 2023-06-11 23:54:05 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-11 23:54:05 +0200 |
| commit | 9c9671bb15acd4acd07abb34c01b800b5ac37540 (patch) | |
| tree | 93632246633f278917c16601529af1ed94405cf1 | |
| parent | cac5770e3cbccccf1eac57f754e418ad56661df9 (diff) | |
| parent | 2815574e35feca0623a9622cf4e2b481dc400aad (diff) | |
| download | ziglings-9c9671bb15acd4acd07abb34c01b800b5ac37540.tar.xz ziglings-9c9671bb15acd4acd07abb34c01b800b5ac37540.zip | |
Merge pull request #323 from ratfactor/issue318
Issue318
| -rw-r--r-- | exercises/068_comptime3.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/068_comptime3.zig b/exercises/068_comptime3.zig index 848d7d2..15b8997 100644 --- a/exercises/068_comptime3.zig +++ b/exercises/068_comptime3.zig @@ -28,7 +28,7 @@ const Schooner = struct { mainmast_height: u32 = 95, fn scaleMe(self: *Schooner, comptime scale: u32) void { - var my_scale = scale; + comptime var my_scale = scale; // We did something neat here: we've anticipated the // possibility of accidentally attempting to create a |
