diff options
author | jtgoen <5403345+jtgoen@users.noreply.github.com> | 2022-06-04 17:21:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 17:21:34 -0600 |
commit | a1d08fb542fdee69007035e7dc8a98255faa7bb8 (patch) | |
tree | b6cf505b8acef4d2b08935ffd95ae6dad0e870aa /exercises/003_assignment.zig | |
parent | 6955f2c067f4d36b30219931cf13832ebad6a3c4 (diff) |
Replace "−" with "-" in Assigment 3 tutorial text
When viewing this file in VSCode, I saw the following warning highlighting lines `15` and `29`
```
The character U+2212 "−" could be confused with the character U+002d "-", which is more common in source code.
```
It seems to me this is just a small oversight, as "-" is used elsewhere in the commented block to denote a negative value, but I'll freely admit ignorance as to any nuance here in using one vs. the other.
Diffstat (limited to 'exercises/003_assignment.zig')
-rw-r--r-- | exercises/003_assignment.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/003_assignment.zig b/exercises/003_assignment.zig index 6a4364b..10ba8cb 100644 --- a/exercises/003_assignment.zig +++ b/exercises/003_assignment.zig @@ -12,7 +12,7 @@ // var bar: u8 = 20; // // Example: foo cannot be negative and can hold 0 to 255 -// bar CAN be negative and can hold −128 to 127 +// bar CAN be negative and can hold -128 to 127 // // const foo: u8 = 20; // const bar: i8 = -20; @@ -26,7 +26,7 @@ // You can do just about any combination of these that you can think of: // // u32 can hold 0 to 4,294,967,295 -// i64 can hold −9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 +// i64 can hold -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 // // Please fix this program so that the types can hold the desired values // and the errors go away! |