aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortim bangma <git.bangma@pm.me>2021-02-12 23:41:33 -0500
committerGitHub <noreply@github.com>2021-02-12 23:41:33 -0500
commitdf724098498118886b7a483aa41ee6ccf41ab489 (patch)
tree2bb9f36ef3e8e36c50caa2ba67cbef349b687bc0
parent8133b22be1d51589771df40e8d5e4bc2f3ba3b8e (diff)
downloadziglings-df724098498118886b7a483aa41ee6ccf41ab489.tar.gz
ziglings-df724098498118886b7a483aa41ee6ccf41ab489.tar.bz2
ziglings-df724098498118886b7a483aa41ee6ccf41ab489.tar.xz
ziglings-df724098498118886b7a483aa41ee6ccf41ab489.zip
Update 03_assignment.zig
Looks like one of the example lines was missing.
-rw-r--r--exercises/03_assignment.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/exercises/03_assignment.zig b/exercises/03_assignment.zig
index d26f2a2..1a27d39 100644
--- a/exercises/03_assignment.zig
+++ b/exercises/03_assignment.zig
@@ -20,6 +20,9 @@
// Example: foo can hold 8 bits (0 to 255)
// bar can hold 16 bits (0 to 65,535)
//
+// const foo: u8 = 20;
+// var bar: u16 = 2000;
+//
// You can do just about any combination of these that you can think of:
//
// u32 can hold 0 to 4,294,967,295