From e6a3c56d771372d6cabff83c0e2d686461cd55f6 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Thu, 18 Oct 2012 07:26:08 -0700 Subject: [PATCH] edits --- examples/channel-directions/channel-directions.go | 6 +++--- examples/channel-synchronization/channel-synchronization.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/channel-directions/channel-directions.go b/examples/channel-directions/channel-directions.go index ad59d0c..becb45d 100644 --- a/examples/channel-directions/channel-directions.go +++ b/examples/channel-directions/channel-directions.go @@ -1,7 +1,7 @@ // When using channels as function parameters, you can // specify if a channel is meant to only send or receive -// values. This specificity further increases the -// type-safety of the program. +// values. This specificity increases the type-safety of +// the program. package main @@ -15,7 +15,7 @@ func ping(pings chan<- string, msg string) { } // The `pong` function accepts one channel for receives -// (`pings`) and a second for sends (`pongs`) +// (`pings`) and a second for sends (`pongs`). func pong(pings <-chan string, pongs chan<- string) { msg := <-pings pongs <- msg diff --git a/examples/channel-synchronization/channel-synchronization.go b/examples/channel-synchronization/channel-synchronization.go index 0085edc..4cc1461 100644 --- a/examples/channel-synchronization/channel-synchronization.go +++ b/examples/channel-synchronization/channel-synchronization.go @@ -13,7 +13,7 @@ import "time" func worker(done chan bool) { fmt.Print("working...") time.Sleep(time.Second) - fmt.Println(" done") + fmt.Println("done") // Send a value to notify that we're done. done <- true