diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-04-09 10:29:39 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-09 10:03:45 -0700 |
| commit | 5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f (patch) | |
| tree | 68e60d45952d665878c169ef84d46a01e021be99 /src/codegen.zig | |
| parent | cc525bc002e456cc735f66bc4d2c5267a10b6016 (diff) | |
| download | zig-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
