# zig fmt: Fix rendering of arrays with single row · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f

Requested commit: 5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f

Commit: 5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f

Tree: 68e60d45952d665878c169ef84d46a01e021be99

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
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

```

## Parents

- [cc525bc002e456cc735f66bc4d2c5267a10b6016](https://git.cafe/gitcafe/zig/commit/cc525bc002e456cc735f66bc4d2c5267a10b6016?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5ebcd8ccafeab0d8ddbdb9723f7e7a50ecc60a5f?format=markdown)
