mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-06 02:03:30 +02:00
@@ -28,7 +28,7 @@ const Schooner = struct {
|
|||||||
mainmast_height: u32 = 95,
|
mainmast_height: u32 = 95,
|
||||||
|
|
||||||
fn scaleMe(self: *Schooner, comptime scale: u32) void {
|
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
|
// We did something neat here: we've anticipated the
|
||||||
// possibility of accidentally attempting to create a
|
// possibility of accidentally attempting to create a
|
||||||
|
|||||||
Reference in New Issue
Block a user