mirror of https://github.com/golang/go.git
doc: do not call WaitGroup a function
Fixes #12060. Change-Id: Ie2fd10bedded1a4f4e0daa0c0c77ecd898480767 Reviewed-on: https://go-review.googlesource.com/13324 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
ad731887a7
commit
4b145d42e9
|
|
@ -1244,11 +1244,11 @@ but is otherwise unnecessary as strings support comparison natively.
|
|||
</li>
|
||||
|
||||
<li>
|
||||
The <a href="/pkg/sync/#WaitGroup"><code>WaitGroup</code></a> function in
|
||||
The <a href="/pkg/sync/#WaitGroup"><code>WaitGroup</code></a> implementation in
|
||||
package <a href="/pkg/sync/"><code>sync</code></a>
|
||||
now diagnoses code that races a call to <a href="/pkg/sync/#WaitGroup.Add"><code>Add</code></a>
|
||||
against a return from <a href="/pkg/sync/#WaitGroup.Wait"><code>Wait</code></a>.
|
||||
If it detects this condition, <code>WaitGroup</code> panics.
|
||||
If it detects this condition, the implementation panics.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue