Fixed missing comptime.

This commit is contained in:
Chris Boesch 2023-06-11 23:41:42 +02:00
parent 8058678680
commit c2a97bb9c1
2 changed files with 5 additions and 1 deletions

View file

@ -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