mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-07-01 00:05:35 +08:00
fix some typo (#677)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user