aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <[email protected]>2021-04-24 12:37:27 -0400
committerDave Gauer <[email protected]>2021-04-24 12:37:27 -0400
commit5d7217dcbfa2058da504a09bc7b57e539f19d1de (patch)
tree5b04db7067f808c334a5bd8c478b47169789b0c3
parentf3a7b573858457c63f35b6eb0c6b0532f551e721 (diff)
downloadziglings-5d7217dcbfa2058da504a09bc7b57e539f19d1de.tar.xz
ziglings-5d7217dcbfa2058da504a09bc7b57e539f19d1de.zip
Fix typo in 066 (issue #46)
-rw-r--r--exercises/066_comptime.zig5
-rw-r--r--patches/patches/066_comptime.patch2
2 files changed, 3 insertions, 4 deletions
diff --git a/exercises/066_comptime.zig b/exercises/066_comptime.zig
index 879ae48..262bf6f 100644
--- a/exercises/066_comptime.zig
+++ b/exercises/066_comptime.zig
@@ -41,9 +41,8 @@ pub fn main() void {
//
// When we use these identifiers in our program, the VALUES
// are inserted at compile time into the executable code. The
- // identifiers "my_int" and "my_float" don't really exist in
- // our compiled application and do not refer to any
- // particular areas of memory!
+ // IDENTIFIERS "const_int" and "const_float" don't exist in
+ // our compiled application!
const const_int = 12345;
const const_float = 987.654;
diff --git a/patches/patches/066_comptime.patch b/patches/patches/066_comptime.patch
index e7130c2..4828ad6 100644
--- a/patches/patches/066_comptime.patch
+++ b/patches/patches/066_comptime.patch
@@ -1,4 +1,4 @@
-65,66c65,66
+64,65c64,65
< var var_int = 12345;
< var var_float = 987.654;
---