diff options
author | Roman FroĊow <rofrol@gmail.com> | 2021-05-13 13:25:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 13:25:29 +0200 |
commit | a7736f7d80603ccc44370f37941fb6c66fa918cb (patch) | |
tree | 109b404dd8ed6a65389a69afef5c4bde168e2f38 /exercises | |
parent | 469d4dfbf40dd5512f53ce1cb022e1aa4639443b (diff) | |
download | ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.tar.gz ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.tar.bz2 ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.tar.xz ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.zip |
Prevent error "cast discards const qualifier"
Diffstat (limited to 'exercises')
-rw-r--r-- | exercises/047_methods.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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. |