aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2022-03-19 19:46:29 -0400
committerDave Gauer <dave@ratfactor.com>2022-03-19 19:46:29 -0400
commit8799c7a45ba34dce871aec36d9910cbfc319dace (patch)
tree05cca621dbd73725542b72f9f630d9f8913559a6 /exercises
parent26acbeeeceda93f5f4ef35c6785a6403ae843233 (diff)
downloadziglings-8799c7a45ba34dce871aec36d9910cbfc319dace.tar.gz
ziglings-8799c7a45ba34dce871aec36d9910cbfc319dace.tar.bz2
ziglings-8799c7a45ba34dce871aec36d9910cbfc319dace.tar.xz
ziglings-8799c7a45ba34dce871aec36d9910cbfc319dace.zip
Improve wording in 005 arrays2 for #93
Hopefully less misleading now - explicit about comptime operators.
Diffstat (limited to 'exercises')
-rw-r--r--exercises/005_arrays2.zig5
1 files changed, 5 insertions, 0 deletions
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 {