Hi There,
A zig noob here.
Trying out ziglings, got this strange error on this exercise
005_arrays2.zig where I used the correct solution of array multiplier operation β**β but I still get a compilation failure.
Compiling 005_arrays2.zig...
Checking 005_arrays2.zig...
exercises/005_arrays2.zig:29:50: error: binary operator '*' has whitespace on one side, but not the other
const bit_pattern_unit = [_]u8{ 1, 0, 0, 1 } ** 3;
^
Ziglings hint: Fill in the two arrays.
Edit exercises/005_arrays2.zig and run 'zig build' again.
ziglings
ββ run exe elrond failure
error: process exited with code 1
failed command: ./.zig-cache/o/c6ab4a32e0c138451268f23ee5e9fa87/elrond --zig=/home/user/.zvm/master/zig --work-path=exercises --root-path=/home/user/learn/zig/ziglings
Build Summary: 1/3 steps succeeded (1 failed)
ziglings transitive failure
ββ run exe elrond failure
bash-5.1$
I am using 0.17.0-dev.1543+6db520a4c version of zig, on a x86_64 linux version 5.15.209, slackware 15.0 distro
Of course I can skip this and move forward, but I thought this is curious at least and I should check with other zig devs.
Hence this post.
Thank you.