# zig fmt: struct literal containing a multiline expression · gitcafe/zig

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

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

Visibility: public

Requested revision: 1253903fef07d7fd0435310f474bfe2745b41405

Requested commit: 1253903fef07d7fd0435310f474bfe2745b41405

Commit: 1253903fef07d7fd0435310f474bfe2745b41405

Tree: f2a6bf81f0ef826d9e5f4bcd1f36aef6cba03b78

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig fmt: struct literal containing a multiline expression

I modified this test case to expect different results.

Now, the trailing comma on a list of struct fields is the only deciding
factor, not whether or not the field init expressions contain a newline.

```

## Parents

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

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