diff options
author | Rob Pike <r@golang.org> | 2010-09-04 10:36:13 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-09-04 10:36:13 +1000 |
commit | 7c2e17b3e6e4c36a3713e272653dcfc9c2056cfd (patch) | |
tree | b5e309f8922e2f29902d7e085ad3943bb480b856 /test/assign.go | |
parent | 83798de970b62e4a4e7b72b9ef53a5d66f71dc3c (diff) | |
download | go-7c2e17b3e6e4c36a3713e272653dcfc9c2056cfd.tar.gz |
test: remove semiocolons.
The ken directory is untouched so we have some examples with explicit semis.
R=gri
CC=golang-dev
http://codereview.appspot.com/2157041
Diffstat (limited to 'test/assign.go')
-rw-r--r-- | test/assign.go | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/test/assign.go b/test/assign.go index fea7c2828..59471388c 100644 --- a/test/assign.go +++ b/test/assign.go @@ -9,45 +9,45 @@ package main import "sync" type T struct { - int; - sync.Mutex; + int + sync.Mutex } func main() { { - var x, y sync.Mutex; - x = y; // ERROR "assignment.*Mutex" - _ = x; + var x, y sync.Mutex + x = y // ERROR "assignment.*Mutex" + _ = x } { - var x, y T; - x = y; // ERROR "assignment.*Mutex" - _ = x; + var x, y T + x = y // ERROR "assignment.*Mutex" + _ = x } { - var x, y [2]sync.Mutex; - x = y; // ERROR "assignment.*Mutex" - _ = x; + var x, y [2]sync.Mutex + x = y // ERROR "assignment.*Mutex" + _ = x } { - var x, y [2]T; - x = y; // ERROR "assignment.*Mutex" - _ = x; + var x, y [2]T + x = y // ERROR "assignment.*Mutex" + _ = x } { - x := sync.Mutex{0, 0}; // ERROR "assignment.*Mutex" - _ = x; + x := sync.Mutex{0, 0} // ERROR "assignment.*Mutex" + _ = x } { - x := sync.Mutex{key: 0}; // ERROR "(unknown|assignment).*Mutex" - _ = x; + x := sync.Mutex{key: 0} // ERROR "(unknown|assignment).*Mutex" + _ = x } { - x := &sync.Mutex{}; // ok - var y sync.Mutex; // ok - y = *x; // ERROR "assignment.*Mutex" - *x = y; // ERROR "assignment.*Mutex" - _ = x; - _ = y; + x := &sync.Mutex{} // ok + var y sync.Mutex // ok + y = *x // ERROR "assignment.*Mutex" + *x = y // ERROR "assignment.*Mutex" + _ = x + _ = y } } |