fix some typo (#677)

This commit is contained in:
heyanfu
2021-05-10 00:09:00 +08:00
committed by GitHub
parent 8478474f7f
commit a5962f677f
7 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@ package syncx
import "sync"
// Once returns a func that guanartees fn can only called once.
// Once returns a func that guarantees fn can only called once.
func Once(fn func()) func() {
once := new(sync.Once)
return func() {