Skip to content

Commit

Permalink
Merge pull request katzien#2 from morfeo8marc/master
Browse files Browse the repository at this point in the history
adding: Fix ErrDuplicate documentation
  • Loading branch information
katzien authored Sep 26, 2018
2 parents e949c3d + f533df3 commit 8b91f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain-hex/pkg/adding/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
)

// ErrUnknown is used when a beer could not be found.
// ErrDuplicate is used when a beer already exists.
var ErrDuplicate = errors.New("beer already exists")

// Service provides beer adding operations.
Expand Down Expand Up @@ -46,4 +46,4 @@ func (s *service) AddSampleBeers(b []Beer) {
for _, bb := range b {
_ = s.bR.AddBeer(bb) // error handling omitted for simplicity
}
}
}

0 comments on commit 8b91f9a

Please sign in to comment.