diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-09 22:07:01 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-09 22:07:01 +0000 |
commit | 0e447c7956410a993614f9337d6219e017722443 (patch) | |
tree | c12780891cbbd14b52695df1fe336cc8981de6d9 /exercises/003_assignment.zig | |
parent | bb5b8f115a57fc8c85ac7344fe4dc0b796e32487 (diff) | |
download | ziglings-0e447c7956410a993614f9337d6219e017722443.tar.gz ziglings-0e447c7956410a993614f9337d6219e017722443.tar.bz2 ziglings-0e447c7956410a993614f9337d6219e017722443.tar.xz ziglings-0e447c7956410a993614f9337d6219e017722443.zip |
001-024 complete
Diffstat (limited to 'exercises/003_assignment.zig')
-rw-r--r-- | exercises/003_assignment.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/003_assignment.zig b/exercises/003_assignment.zig index 10ba8cb..23ef638 100644 --- a/exercises/003_assignment.zig +++ b/exercises/003_assignment.zig @@ -34,12 +34,12 @@ const std = @import("std"); pub fn main() void { - const n: u8 = 50; + var n: u8 = 50; n = n + 5; - const pi: u8 = 314159; + const pi: u32 = 314159; - const negative_eleven: u8 = -11; + const negative_eleven: i8 = -11; // There are no errors in the next line, just explanation: // Perhaps you noticed before that the print function takes two |