aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-14 12:04:04 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-14 12:04:04 -0500
commita541dc734bb44e4f57dad810ba9bb44bc4444ba9 (patch)
tree05c8acfb2ab95ebd3eb1f85cccb2b7f63a044a20 /exercises
parent93050efc73e26be85334d941bdc14d19d58df1ca (diff)
downloadziglings-a541dc734bb44e4f57dad810ba9bb44bc4444ba9.tar.gz
ziglings-a541dc734bb44e4f57dad810ba9bb44bc4444ba9.tar.bz2
ziglings-a541dc734bb44e4f57dad810ba9bb44bc4444ba9.tar.xz
ziglings-a541dc734bb44e4f57dad810ba9bb44bc4444ba9.zip
03 assignment - var to const in example for clarity
Diffstat (limited to 'exercises')
-rw-r--r--exercises/03_assignment.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/03_assignment.zig b/exercises/03_assignment.zig
index 662fd18..3775afc 100644
--- a/exercises/03_assignment.zig
+++ b/exercises/03_assignment.zig
@@ -15,7 +15,7 @@
// bar CAN be negative and can hold −128 to 127
//
// const foo: u8 = 20;
-// var bar: i8 = -20;
+// const bar: i8 = -20;
//
// Example: foo can hold 8 bits (0 to 255)
// bar can hold 16 bits (0 to 65,535)