Skip to content

Commit

Permalink
Minimise sealed method implementations in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
frou authored and BurntSushi committed Mar 20, 2017
1 parent 3d2fd15 commit a012f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ type MySumType interface {

type VariantA struct{}

func (a *VariantA) sealed() {}
func (*VariantA) sealed() {}

type VariantB struct{}

func (b *VariantB) sealed() {}
func (*VariantB) sealed() {}

func main() {
switch MySumType(nil).(type) {
Expand Down

0 comments on commit a012f2d

Please sign in to comment.