aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit5d44734cfecc86c10e8ebebffc4ee6af242e1940 (patch)
tree05c8acfb2ab95ebd3eb1f85cccb2b7f63a044a20
parentd4739ac00a3bdcca86b098e9e0c9511d22c98cb0 (diff)
03 assignment - var to const in example for clarity
-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)