aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <ratfactor@gmail.com>2021-05-13 11:34:01 -0400
committerGitHub <noreply@github.com>2021-05-13 11:34:01 -0400
commit12361f938486eab36af12c33e73cda5acaf2fb0c (patch)
treeacc25011f69987448d7c8e85272cbf012b84deb0
parentedd6bf6f8e926b61c2889ad24696b46e72c58a65 (diff)
parenta7736f7d80603ccc44370f37941fb6c66fa918cb (diff)
downloadziglings-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.zig2
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.