summaryrefslogtreecommitdiff
path: root/src/lib/once_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-30 14:39:31 -0800
committerRuss Cox <rsc@golang.org>2009-01-30 14:39:31 -0800
commitbefc40a4e68bd0af08b6e8020598c85a9c235665 (patch)
tree23faccc99f2fcc5de337a139fb7b812a8a2f3137 /src/lib/once_test.go
parenta43f0e293191f7adf93bc9e754baeb14af9fd930 (diff)
downloadgolang-befc40a4e68bd0af08b6e8020598c85a9c235665.tar.gz
update go code tree to new func rules.
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
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);
}
}