diff --git a/examples/command-line-flags/command-line-flags.go b/examples/command-line-flags/command-line-flags.go index af4f8a7..717a8fb 100644 --- a/examples/command-line-flags/command-line-flags.go +++ b/examples/command-line-flags/command-line-flags.go @@ -39,7 +39,7 @@ func main() { // Here we'll just dump out the parsed options and // any trailing positional arguments. Note that we - // need to dereference the points with e.g. `*wordPtr` + // need to dereference the pointers with e.g. `*wordPtr` // to get the actual option values. fmt.Println("word:", *wordPtr) fmt.Println("numb:", *numbPtr) diff --git a/examples/environment-variables/environment-variables.sh b/examples/environment-variables/environment-variables.sh index 5809601..0969313 100644 --- a/examples/environment-variables/environment-variables.sh +++ b/examples/environment-variables/environment-variables.sh @@ -1,5 +1,5 @@ # Running the program shows that we pick up the value -# value for `FOO` that we set in the program, but that +# for `FOO` that we set in the program, but that # `BAR` is empty. $ go run environment-variables.go FOO: 1 diff --git a/examples/execing-processes/execing-processes.go b/examples/execing-processes/execing-processes.go index b8305ee..5963fe5 100644 --- a/examples/execing-processes/execing-processes.go +++ b/examples/execing-processes/execing-processes.go @@ -36,7 +36,7 @@ func main() { // environment. env := os.Environ() - // Here's the actual `os.Exec` call. If this call is + // Here's the actual `syscall.Exec` call. If this call is // successful, the execution of our process will end // here and be replaced by the `/bin/ls -a -l -h` // process. If there is an error we'll get a return diff --git a/examples/if-else/if-else.go b/examples/if-else/if-else.go index 49caaf1..3ed9586 100644 --- a/examples/if-else/if-else.go +++ b/examples/if-else/if-else.go @@ -32,4 +32,4 @@ func main() { } // Note that you don't need parentheses around conditions -// in Go, but that the brackets are required. +// in Go, but that the braces are required. diff --git a/examples/regular-expressions/regular-expressions.go b/examples/regular-expressions/regular-expressions.go index 5eb8631..fa66f83 100644 --- a/examples/regular-expressions/regular-expressions.go +++ b/examples/regular-expressions/regular-expressions.go @@ -26,7 +26,7 @@ func main() { // This finds the match for the regexp. fmt.Println(r.FindString("peach punch")) - // The also finds the first match but returns the + // This also finds the first match but returns the // start and end indexes for the match instead of the // matching text. fmt.Println(r.FindStringIndex("peach punch")) diff --git a/examples/string-formatting/string-formatting.go b/examples/string-formatting/string-formatting.go index c558e6d..ac5f57c 100644 --- a/examples/string-formatting/string-formatting.go +++ b/examples/string-formatting/string-formatting.go @@ -63,7 +63,7 @@ func main() { // To double-quote strings as in Go source, use `%q`. fmt.Printf("%q\n", "\"string\"") - // As with integers as seen earlier, `%x` renders + // As with integers seen earlier, `%x` renders // the string in base-16, with two output characters // per byte of input. fmt.Printf("%x\n", "hex this") diff --git a/examples/time-formatting-parsing/time-formatting-parsing.go b/examples/time-formatting-parsing/time-formatting-parsing.go index 2ae8283..337ccd5 100644 --- a/examples/time-formatting-parsing/time-formatting-parsing.go +++ b/examples/time-formatting-parsing/time-formatting-parsing.go @@ -21,7 +21,7 @@ func main() { "2012-11-01T22:08:41+00:00") p(t1) - // `Format` and `Parse` uses example-based layouts. Usually + // `Format` and `Parse` use example-based layouts. Usually // you'll use a constant from `time` for these layouts, but // you can also supply custom layouts. Layouts must use the // reference time `Mon Jan 2 15:04:05 MST 2006` to show the