]> Cypherpunks repositories - gostls13.git/commit
sync: improve once.Do documentation readability
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 28 Aug 2013 02:53:59 +0000 (12:53 +1000)
committerRob Pike <r@golang.org>
Wed, 28 Aug 2013 02:53:59 +0000 (12:53 +1000)
commitcbea724378e1586cd92f1fffddcad61af893ba1d
treeced03715d3513600841df10eb6f7ff89d34d3e9d
parentaff7ea9458d9010aec816e451fa557a3fd3a7d68
sync: improve once.Do documentation readability

The previous wording, though accurate, was hard to parse.
In particular, it was tempting to interpret "the method"
as referring to "the function f" instead of "Do", and
required effort to find the correct antecedent for
"this receiver".

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/13307043
src/pkg/sync/once.go