aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman FroĊ‚ow <rofrol@gmail.com>2021-05-13 13:25:29 +0200
committerGitHub <noreply@github.com>2021-05-13 13:25:29 +0200
commita7736f7d80603ccc44370f37941fb6c66fa918cb (patch)
tree109b404dd8ed6a65389a69afef5c4bde168e2f38
parent469d4dfbf40dd5512f53ce1cb022e1aa4639443b (diff)
downloadziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.tar.gz
ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.tar.bz2
ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.tar.xz
ziglings-a7736f7d80603ccc44370f37941fb6c66fa918cb.zip
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.