From 8799c7a45ba34dce871aec36d9910cbfc319dace Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 19 Mar 2022 19:46:29 -0400 Subject: Improve wording in 005 arrays2 for #93 Hopefully less misleading now - explicit about comptime operators. --- exercises/005_arrays2.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'exercises') diff --git a/exercises/005_arrays2.zig b/exercises/005_arrays2.zig index c5df8d4..497d400 100644 --- a/exercises/005_arrays2.zig +++ b/exercises/005_arrays2.zig @@ -11,6 +11,11 @@ // // const d = [_]u8{ 1,2,3 } ** 2; // equals 1 2 3 1 2 3 // +// Note that both '++' and '**' only operate on arrays while your +// program is _being compiled_. This special time is known in Zig +// parlance as "comptime" and we'll learn plenty more about that +// later. +// const std = @import("std"); pub fn main() void { -- cgit v1.2.3-ZIG