diff options
| author | Damien Firmenich <fir.damien@gmail.com> | 2022-04-05 17:08:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-05 18:08:33 +0300 |
| commit | 5fafcc2b629e2ff00755b2bf45e903590f04aa9f (patch) | |
| tree | 143bde0c47f71678a3d7f340073f519f7c41b7d2 /src/link/Elf.zig | |
| parent | 95a87e88fac3fc563ac3baaf4eb8027341f4131e (diff) | |
| download | zig-5fafcc2b629e2ff00755b2bf45e903590f04aa9f.tar.gz zig-5fafcc2b629e2ff00755b2bf45e903590f04aa9f.zip | |
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.
Diffstat (limited to 'src/link/Elf.zig')
| -rw-r--r-- | src/link/Elf.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Elf.zig b/src/link/Elf.zig index aa5c5e2a47..9e1ed0cf54 100644 --- a/src/link/Elf.zig +++ b/src/link/Elf.zig @@ -154,7 +154,7 @@ atom_by_index_table: std.AutoHashMapUnmanaged(u32, *TextBlock) = .{}, /// const Foo = struct{ /// a: u8, /// }; -/// +/// /// pub fn main() void { /// var foo = Foo{ .a = 1 }; /// _ = foo; |
