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() 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