{"slug": "binary-operator-error", "title": "Binary operator error", "summary": "Zig removed the `**` array multiplication syntax in version 0.17.0, according to the language's release notes, and forum user Nae told a Ziglings learner to replace `const bit_pattern_unit = [_]u8{ 1, 0, 0, 1 } ** 3;` with `@splat`. The learner's error, \"binary operator '*' has whitespace on one side, but not the other,\" stems from running an outdated fork of the Ziglings exercises, and Nae pointed to the Codeberg repository at codeberg.org/ziglings/exercises for the current version.", "body_md": "I need help finding an ziglings error, I tried many solutions including googlling and use ai. However I still have not found a way to fix this error, all help appreciated!\n\nerror: binary operator ‘*’ has whitepace on one side, but not the other\n\nconst bit_pattern_unit = [_]u8{ 1, 0, 0, 1 } ** 3;\n\n \n \n[Nae](https://ziggit.dev/u/Nae)\n2\n \nThis syntax [has been removed](https://ziglang.org/download/0.17.0/release-notes.html#Array-Multiplication-Syntax-Removed).\n\nWhich zigling exercise? I cannot grep `**` in my version. Maybe you have an old fork, look in the [codeberg repo](https://codeberg.org/ziglings/exercises).\n\n \n \nUse `@splat` instead of the `**`, this has been removed in version `0.17.0`.", "url": "https://wpnews.pro/news/binary-operator-error", "canonical_source": "https://ziggit.dev/t/binary-operator-error/17850#post_3", "published_at": "2026-10-05 13:24:28+00:00", "updated_at": "2026-10-05 13:49:36.322998+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Zig", "Ziglings", "Nae", "Codeberg"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/binary-operator-error", "markdown": "https://wpnews.pro/news/binary-operator-error.md", "text": "https://wpnews.pro/news/binary-operator-error.txt", "jsonld": "https://wpnews.pro/news/binary-operator-error.jsonld"}}