zig.guide
zig.guide copied to clipboard
Update 30-vectors.mdx
https://zig.guide/language-basics/vectors page contains two "vector looping" code snippets, they are almost the same.
The only difference is: The first one has:
const sum = blk: {
the second has
var sum = blk: {
Variant with var
considered as error actually, because variable does not change.
So my fix is removing the duplication.