From 321b37d42db6e74fc28abab65782d4da5c2ffcaa Mon Sep 17 00:00:00 2001 From: sre Date: Tue, 16 Oct 2012 01:25:13 +0300 Subject: [PATCH 1/2] Update examples/switch/switch.sh i := 2 is two! --- examples/switch/switch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/switch/switch.sh b/examples/switch/switch.sh index 1f30eff..22925ea 100644 --- a/examples/switch/switch.sh +++ b/examples/switch/switch.sh @@ -1,5 +1,5 @@ $ go run switch.go -Write 3 as three +Write 2 as two It's the weekend It's before noon From 2cff79294698a9086f652bedfd056f1f17f3ae90 Mon Sep 17 00:00:00 2001 From: sre Date: Tue, 16 Oct 2012 01:29:17 +0300 Subject: [PATCH 2/2] Spelling. comand => command --- examples/spawning-processes/spawning-processes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/spawning-processes/spawning-processes.go b/examples/spawning-processes/spawning-processes.go index b7b708a..1fb0c35 100644 --- a/examples/spawning-processes/spawning-processes.go +++ b/examples/spawning-processes/spawning-processes.go @@ -20,7 +20,7 @@ func main() { dateCmd := exec.Command("date") // `.Output` is another helper than handles the common - // case of running a comand, waiting for it to finish, + // case of running a command, waiting for it to finish, // and collecting its output. If there were no errors, // `dateOut` will hold bytes with the date info. dateOut, err := dateCmd.Output()