1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:14:40 -07:00

fix a few nits in the typography so HTML is right

SVN=111691
This commit is contained in:
Rob Pike 2008-03-06 22:14:17 -08:00
parent f27e5df49c
commit 194ed070de

View File

@ -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 := <in; // Receive value of new variable 'i' from 'in'.
if i % prime != 0 {
>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 := <ch;
printf("%d\n", prime);
ch1 := new(chan int);
@ -408,7 +408,7 @@ text into Unicode characters.
* A `little u' value, such as \u12AB. This represents the Unicode
code point with the corresponding hexadecimal value. It always
has exactly 4 hexadecimal digits.
* A `big U' value, such as '\U00101234'. This represents the
* A `big U' value, such as \U00101234. This represents the
Unicode code point with the corresponding hexadecimal value.
It always has exactly 8 hexadecimal digits.