Skip to content

Commit

Permalink
Merge pull request xxjwxc#6 from XhinLiang/patch-1
Browse files Browse the repository at this point in the history
更新 「零值 Mutex 是有效的」
  • Loading branch information
xxjwxc authored Oct 25, 2019
2 parents 53631d4 + d02eda1 commit 850da8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ i = s2Ptr

### 零值 Mutex 是有效的

sync.Mutex 和 sync.RWMutex 是有效的。因此你几乎不需要一个指向 mutex 的指针
零值 `sync.Mutex``sync.RWMutex` 是有效的。所以指向 mutex 的指针基本是不必要的

<table>
<thead><tr><th>Bad</th><th>Good</th></tr></thead>
Expand Down

0 comments on commit 850da8f

Please sign in to comment.