From df724098498118886b7a483aa41ee6ccf41ab489 Mon Sep 17 00:00:00 2001 From: tim bangma Date: Fri, 12 Feb 2021 23:41:33 -0500 Subject: Update 03_assignment.zig Looks like one of the example lines was missing. --- exercises/03_assignment.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'exercises') 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 -- cgit v1.2.3-ZIG From fa0abdc79f75e8ac5e98b8cab0605a998655f6e6 Mon Sep 17 00:00:00 2001 From: tim bangma Date: Sat, 13 Feb 2021 23:06:48 -0500 Subject: Update 03_assignment.zig --- exercises/03_assignment.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises') diff --git a/exercises/03_assignment.zig b/exercises/03_assignment.zig index 1a27d39..662fd18 100644 --- a/exercises/03_assignment.zig +++ b/exercises/03_assignment.zig @@ -21,7 +21,7 @@ // bar can hold 16 bits (0 to 65,535) // // const foo: u8 = 20; -// var bar: u16 = 2000; +// const bar: u16 = 2000; // // You can do just about any combination of these that you can think of: // -- cgit v1.2.3-ZIG