From a7736f7d80603ccc44370f37941fb6c66fa918cb Mon Sep 17 00:00:00 2001 From: Roman FroĊ‚ow Date: Thu, 13 May 2021 13:25:29 +0200 Subject: Prevent error "cast discards const qualifier" --- exercises/047_methods.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises') diff --git a/exercises/047_methods.zig b/exercises/047_methods.zig index c8e5c17..dcc3e13 100644 --- a/exercises/047_methods.zig +++ b/exercises/047_methods.zig @@ -32,7 +32,7 @@ // with the "dot syntax", the instance will be automatically // passed as the "self" parameter: // -// const my_bar = Bar{ .number = 2000 }; +// var my_bar = Bar{ .number = 2000 }; // my_bar.printMe(); // prints "2000" // // Okay, you're armed. -- cgit v1.2.3-ZIG