Browse Source

Prevent error "cast discards const qualifier"

Roman Frołow 4 years ago
parent
commit
204146261c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exercises/047_methods.zig

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