1
0
Fork 0
mirror of https://github.com/tmrts/go-patterns.git synced 2025-04-02 20:56:12 +03:00

fix: typo

This commit is contained in:
Zhang xian 2019-01-17 14:58:51 +08:00
parent f978e42036
commit 4f28a53474
No known key found for this signature in database
GPG key ID: 49EA355579BB9300
2 changed files with 2 additions and 4 deletions

View file

@ -36,7 +36,7 @@ const (
)
type Builder interface {
Color(Color) Builder
Paint(Color) Builder
Wheels(Wheels) Builder
TopSpeed(Speed) Builder
Build() Interface

View file

@ -7,7 +7,7 @@ A semaphore is a synchronization pattern/primitive that imposes mutual exclusion
package semaphore
var (
ErrNoTickets = errors.New("semaphore: could not aquire semaphore")
ErrNoTickets = errors.New("semaphore: could not acquire semaphore")
ErrIllegalRelease = errors.New("semaphore: can't release the semaphore without acquiring it first")
)
@ -38,8 +38,6 @@ func (s *implementation) Release() error {
case <-time.After(s.timeout):
return ErrIllegalRelease
}
return nil
}
func New(tickets int, timeout time.Duration) Interface {