mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
Fixed missing comptime.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user