aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-04-09 10:29:39 +0200
committerAndrew Kelley <andrew@ziglang.org>2021-04-09 10:03:45 -0700
commit5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f (patch)
tree68e60d45952d665878c169ef84d46a01e021be99 /src/codegen.zig
parentcc525bc002e456cc735f66bc4d2c5267a10b6016 (diff)
downloadzig-5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f.tar.gz
zig-5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f.zip
zig fmt: Fix rendering of arrays with single row
rowSize used to return null if all the elements were placed on the same line as the right brace, making the rendering logic skip the whole set of elements. Given the usage of rowSize let's just drop the null and always return the number of elements. Fixes #8423
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions