From 194ed070de814b341b23c43205d45ad3e7393d83 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 6 Mar 2008 22:14:17 -0800 Subject: [PATCH] fix a few nits in the typography so HTML is right SVN=111691 --- doc/go_lang.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 :=