remove pub syntax for container fields

This commit is contained in:
Vexu
2019-10-21 22:22:08 +03:00
committed by Andrew Kelley
parent 859cbef8a4
commit 2550cb4638
12 changed files with 54 additions and 66 deletions

View File

@@ -1766,7 +1766,7 @@ test "zig fmt: struct declaration" {
\\const S = struct {
\\ const Self = @This();
\\ f1: u8,
\\ pub f3: u8,
\\ f3: u8,
\\
\\ fn method(self: *Self) Self {
\\ return self.*;
@@ -1777,14 +1777,14 @@ test "zig fmt: struct declaration" {
\\
\\const Ps = packed struct {
\\ a: u8,
\\ pub b: u8,
\\ b: u8,
\\
\\ c: u8,
\\};
\\
\\const Es = extern struct {
\\ a: u8,
\\ pub b: u8,
\\ b: u8,
\\
\\ c: u8,
\\};