Zig Version
0.12.0-dev.1680+be6f76655
Steps to Reproduce and Observed Behavior
// fmt.zig
fn foo(
/// uh oh no comma
_: void
) void {}
$ zig fmt fmt.zig
fmt.zig
$ cat fmt.zig
fn foo(/// uh oh no comma
_: void) void {}
$ zig fmt fmt.zig
fmt.zig:1:8: error: same line documentation comment
fn foo(/// uh oh no comma
^~~~~~~~~~~~~~~~~~
Expected Behavior
zig fmt should keep the doc comment on a separate line or issue an error immediately rather than generating invalid code insert a trailing comma to keep the lines separate