diff options
author | Dave Gauer <ratfactor@gmail.com> | 2021-05-13 11:34:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 11:34:01 -0400 |
commit | 12361f938486eab36af12c33e73cda5acaf2fb0c (patch) | |
tree | acc25011f69987448d7c8e85272cbf012b84deb0 | |
parent | edd6bf6f8e926b61c2889ad24696b46e72c58a65 (diff) | |
parent | a7736f7d80603ccc44370f37941fb6c66fa918cb (diff) | |
download | ziglings-12361f938486eab36af12c33e73cda5acaf2fb0c.tar.gz ziglings-12361f938486eab36af12c33e73cda5acaf2fb0c.tar.bz2 ziglings-12361f938486eab36af12c33e73cda5acaf2fb0c.tar.xz ziglings-12361f938486eab36af12c33e73cda5acaf2fb0c.zip |
Merge pull request #54 from rofrol/patch-2
Prevent error "cast discards const qualifier"
-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. |