Skip to content

Commit

Permalink
docs: remove extra case
Browse files Browse the repository at this point in the history
  • Loading branch information
nishanths committed Dec 30, 2022
1 parent 141c88f commit d5c9291
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exhaustive.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ The following switch statements are exhaustive.
switch v {
case newpkg.A:
case newpkg.B:
case newpkg.Y:
}
}
Expand Down Expand Up @@ -217,7 +216,7 @@ comment that begins with "//exhaustive:ignore". For example:
To ignore specific constants in exhaustiveness checks, use the
-ignore-enum-members flag:
exhaustive -ignore-enum-members '^example\.org/eco.Tundra$'
exhaustive -ignore-enum-members '^example\.org/eco\.Tundra$'
To ignore specific types, use the -ignore-enum-types flag:
Expand Down

0 comments on commit d5c9291

Please sign in to comment.