From: Rob Pike Date: Fri, 7 Mar 2008 06:14:17 +0000 (-0800) Subject: fix a few nits in the typography so HTML is right X-Git-Tag: weekly.2009-11-06~3836 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=194ed070de814b341b23c43205d45ad3e7393d83;p=gostls13.git fix a few nits in the typography so HTML is right SVN=111691 --- diff --git a/doc/go_lang.txt b/doc/go_lang.txt index 3159b3f3f0..f58cdae118 100644 --- a/doc/go_lang.txt +++ b/doc/go_lang.txt @@ -161,7 +161,7 @@ Here is a complete example Go program that implements a concurrent prime sieve: // Copy the values from channel 'in' to channel 'out', // removing those divisible by 'prime'. func Filter(in *chan< int, out *chan> int, prime int) { - for ; ; { + for { i := out = i; // Send 'i' to channel 'out'. @@ -173,7 +173,7 @@ Here is a complete example Go program that implements a concurrent prime sieve: func Sieve() { ch := new(chan int); // Create a new channel. go Generate(ch); // Start Generate() as a subprocess. - for ; ; { + for { prime :=