Browse Source

Improve wording in 005 arrays2 for #93

Hopefully less misleading now - explicit about comptime
operators.
Dave Gauer 3 years ago
parent
commit
361630fdce
1 changed files with 5 additions and 0 deletions
  1. 5 0
      exercises/005_arrays2.zig

+ 5 - 0
exercises/005_arrays2.zig

@@ -11,6 +11,11 @@
 //
 //
 //   const d = [_]u8{ 1,2,3 } ** 2; // equals 1 2 3 1 2 3
 //   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");
 const std = @import("std");
 
 
 pub fn main() void {
 pub fn main() void {