diff options
| author | Russ Cox <rsc@golang.org> | 2009-10-06 19:40:35 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-10-06 19:40:35 -0700 |
| commit | db62e99a735a036afda2098f1a721fe8dbf6ce76 (patch) | |
| tree | 0659cc93b73ec28c8a1b46725f0c3d540bda5daf /src/pkg/once/once.go | |
| parent | 184ae37561c4cfc3b2351312d3793c5788f67ae8 (diff) | |
| download | golang-db62e99a735a036afda2098f1a721fe8dbf6ce76.tar.gz | |
apply gofmt to malloc math once os
R=gri
DELTA=566 (4 added, 14 deleted, 548 changed)
OCL=35410
CL=35419
Diffstat (limited to 'src/pkg/once/once.go')
| -rw-r--r-- | src/pkg/once/once.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/once/once.go b/src/pkg/once/once.go index a87189ccc..3270f9aec 100644 --- a/src/pkg/once/once.go +++ b/src/pkg/once/once.go @@ -9,12 +9,12 @@ package once import "sync" type job struct { - done bool; + done bool; sync.Mutex; // should probably be sync.Notification or some such } var jobs = make(map[func()]*job) -var joblock sync.Mutex; +var joblock sync.Mutex // Do is the the only exported piece of the package. // For one-time initialization that is not done during init, @@ -27,7 +27,7 @@ var joblock sync.Mutex; // Since a func() expression typically evaluates to a differerent // function value each time it is evaluated, it is incorrect to // pass such values to Do. For example, -// func f(x int) { +// func f(x int) { // Do(func() { fmt.Println(x) }) // } // behaves the same as |
