]> Cypherpunks repositories - gostls13.git/commitdiff
doc: do not call WaitGroup a function
authorRuss Cox <rsc@golang.org>
Thu, 6 Aug 2015 20:05:56 +0000 (16:05 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Aug 2015 20:37:38 +0000 (20:37 +0000)
Fixes #12060.

Change-Id: Ie2fd10bedded1a4f4e0daa0c0c77ecd898480767
Reviewed-on: https://go-review.googlesource.com/13324
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.5.html

index 5f6e5f7b912a15e92cfc55ea716bc07128dafef1..376eb933cc952f03383c18a332eace2af38f33f2 100644 (file)
@@ -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>