diff options
| author | Chris Boesch <[email protected]> | 2023-06-11 23:41:42 +0200 |
|---|---|---|
| committer | Chris Boesch <[email protected]> | 2023-06-11 23:41:42 +0200 |
| commit | 7a16ed09ac1700a61c6948951d56961f81c1ff77 (patch) | |
| tree | 21b0d7453d55a07d383f79d240693506f0b7c82f /exercises | |
| parent | cac5770e3cbccccf1eac57f754e418ad56661df9 (diff) | |
| download | ziglings-7a16ed09ac1700a61c6948951d56961f81c1ff77.tar.xz ziglings-7a16ed09ac1700a61c6948951d56961f81c1ff77.zip | |
Fixed missing comptime.
Diffstat (limited to 'exercises')
| -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 |
