Browse Source

Merge pull request #323 from ratfactor/issue318

Issue318
Chris Boesch 2 years ago
parent
commit
9c9671bb15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/068_comptime3.zig

+ 1 - 1
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