1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-05 01:56:03 +02:00

Improve wording in 005 arrays2 for #93

Hopefully less misleading now - explicit about comptime
operators.
This commit is contained in:
Dave Gauer 2022-03-19 19:46:29 -04:00
parent 26acbeeece
commit 8799c7a45b

View File

@ -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 {