zig fmt: remove trailing whitespace on doc comments

Fixes #11353

The renderer treats comments and doc comments differently since doc
comments are parsed into the Ast. This commit adds a check after getting
the text for the doc comment and trims whitespace at the end before
rendering.

The `a = 0,` in the test is here to avoid a ParseError while parsing the
test.
5fafcc2b62Damien Firmenich committed on 4/5/2022, 3:08:33 PM· committed by GitHubparent95a87e8
22 files changedLine totals unavailable