Chore: fix typo (#1017)

This commit is contained in:
kongminhao
2020-10-14 19:56:02 +08:00
committed by GitHub
parent bc52f8e4fd
commit 8c3e2a7559
8 changed files with 10 additions and 10 deletions

View File

@ -24,8 +24,8 @@ type Result struct {
Err error
}
// Do single.Do likes sync.singleFilght
//lint:ignore ST1008 it likes sync.singleFilght
// Do single.Do likes sync.singleFlight
//lint:ignore ST1008 it likes sync.singleFlight
func (s *Single) Do(fn func() (interface{}, error)) (v interface{}, err error, shared bool) {
s.mux.Lock()
now := time.Now()