1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 04:22:22 +00:00

Update ch1-05-mem.md

This commit is contained in:
cloudzhou 2018-04-02 10:54:53 +08:00 committed by GitHub
parent 058b248e44
commit 4932a53620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ var (
)
func Instance() *singleton {
if atomic.LoadUInt32(&initialized) == 1 {
if atomic.LoadUint32(&initialized) == 1 {
return instance
}