diff options
author | Russ Cox <rsc@golang.org> | 2008-10-07 12:31:31 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-10-07 12:31:31 -0700 |
commit | 983f06bdb657d1abf79effc1454f8c94754363aa (patch) | |
tree | 133422e9724c37fc7aac2fcf9f1c52b230af51ef /test/sieve.go | |
parent | 7ee60b174dd92edca7e608dc06ec4f1b2d0eb79f (diff) | |
download | go-git-983f06bdb657d1abf79effc1454f8c94754363aa.tar.gz |
update code to follow new semicolon rules:
* 1. all statements and declarations are terminated by semicolons
* 2. semicolons can be omitted at top level.
* 3. semicolons can be omitted before and after the closing ) or }
* on a list of statements or declarations.
/home/rsc/bin/addsemi and then diff+tweak.
R=r,gri
OCL=16620
CL=16643
Diffstat (limited to 'test/sieve.go')
-rw-r--r-- | test/sieve.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sieve.go b/test/sieve.go index 998c4be669..366d5b94ce 100644 --- a/test/sieve.go +++ b/test/sieve.go @@ -17,7 +17,7 @@ func Generate(ch *chan<- int) { // removing those divisible by 'prime'. func Filter(in *<-chan int, out *chan<- int, prime int) { for { - i := <-in // Receive value of new variable 'i' from 'in'. + i := <-in; // Receive value of new variable 'i' from 'in'. if i % prime != 0 { out <- i // Send 'i' to channel 'out'. } |