diff options
Diffstat (limited to 'vendor/golang.org/x/sync/semaphore')
-rw-r--r-- | vendor/golang.org/x/sync/semaphore/semaphore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/golang.org/x/sync/semaphore/semaphore.go b/vendor/golang.org/x/sync/semaphore/semaphore.go index ac53e733e..7f096fef0 100644 --- a/vendor/golang.org/x/sync/semaphore/semaphore.go +++ b/vendor/golang.org/x/sync/semaphore/semaphore.go @@ -95,7 +95,7 @@ func (s *Weighted) Release(n int64) { s.cur -= n if s.cur < 0 { s.mu.Unlock() - panic("semaphore: bad release") + panic("semaphore: released more than held") } for { next := s.waiters.Front() |