adambard/learnxinyminutes-docs

Zig no longer has ** repetition operator

Closed

#5,574 opened on Jul 29, 2026

 (0 comments) (0 reactions) (0 assignees)Markdown (3,657 forks)batch import
help wanted

Repository metrics

Stars
 (12,317 stars)
PR merge metrics
 (Avg merge 23d 19h) (8 merged PRs in 30d)

Description

Lines 117, 122, & 813 of zig.md contain the ** comptime repetition operator which is no longer in the Zig language. Array initialization can be done with builtin @splat function, other builtin functions, or custom comptime code

Contributor guide