Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Dec 1, 2024
1 parent 81dc729 commit 4370bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safemap/locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (s *M[K, V]) RUnlock() { s.lock.RUnlock() }

func (s *M[K, V]) checkInit() {
if s.m == nil { //new(safemap.M[K, V])这种方式实例化代码简洁
s.init(true)
s.init(Ordered)
}
}
func (s *M[K, V]) init(ordered ...bool) {
Expand Down

0 comments on commit 4370bf2

Please sign in to comment.