mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2026-01-16 12:17:13 +08:00
ch9: fix code format
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
var mu sync.RWMutex
|
||||
var balance int
|
||||
func Balance() int {
|
||||
mu.RLock() // readers lock
|
||||
defer mu.RUnlock()
|
||||
return balance
|
||||
mu.RLock() // readers lock
|
||||
defer mu.RUnlock()
|
||||
return balance
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user