summaryrefslogtreecommitdiff
path: root/src/lib/once_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/once_test.go')
-rw-r--r--src/lib/once_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/once_test.go b/src/lib/once_test.go
index a19d34dca..9506ff3d7 100644
--- a/src/lib/once_test.go
+++ b/src/lib/once_test.go
@@ -16,16 +16,16 @@ func call() {
func TestOnce(t *testing.T) {
ncall = 0;
- once.Do(&call);
+ once.Do(call);
if ncall != 1 {
- t.Fatalf("once.Do(&call) didn't call(): ncall=%d", ncall);
+ t.Fatalf("once.Do(call) didn't call(): ncall=%d", ncall);
}
- once.Do(&call);
+ once.Do(call);
if ncall != 1 {
- t.Fatalf("second once.Do(&call) did call(): ncall=%d", ncall);
+ t.Fatalf("second once.Do(call) did call(): ncall=%d", ncall);
}
- once.Do(&call);
+ once.Do(call);
if ncall != 1 {
- t.Fatalf("third once.Do(&call) did call(): ncall=%d", ncall);
+ t.Fatalf("third once.Do(call) did call(): ncall=%d", ncall);
}
}