Skip to content

Commit d5c9291

Browse files
author
Nishanth Shanmugham
committed
docs: remove extra case
1 parent 141c88f commit d5c9291

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

exhaustive.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ The following switch statements are exhaustive.
126126
switch v {
127127
case newpkg.A:
128128
case newpkg.B:
129-
case newpkg.Y:
130129
}
131130
}
132131
@@ -217,7 +216,7 @@ comment that begins with "//exhaustive:ignore". For example:
217216
To ignore specific constants in exhaustiveness checks, use the
218217
-ignore-enum-members flag:
219218
220-
exhaustive -ignore-enum-members '^example\.org/eco.Tundra$'
219+
exhaustive -ignore-enum-members '^example\.org/eco\.Tundra$'
221220
222221
To ignore specific types, use the -ignore-enum-types flag:
223222

0 commit comments

Comments
 (0)