diff --git a/examples/execing-processes/execing-processes.go b/examples/execing-processes/execing-processes.go index 453a9c8..2be31e6 100644 --- a/examples/execing-processes/execing-processes.go +++ b/examples/execing-processes/execing-processes.go @@ -17,7 +17,7 @@ import "os/exec" func main() { // For our example we'll exec `ls`. Go requires an - // abolute path to the binary we want to execute, so + // absolute path to the binary we want to execute, so // we'll use `exec.LookPath` to find it (probably // `/bin/ls`). binary, lookErr := exec.LookPath("ls") @@ -36,7 +36,7 @@ func main() { env := os.Environ() // Here's the actual `os.Exec` call. If this call is - // succesful, the execution of our process will end + // 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 // value. diff --git a/examples/range/range.go b/examples/range/range.go index a1fee6e..b23d7eb 100644 --- a/examples/range/range.go +++ b/examples/range/range.go @@ -29,7 +29,7 @@ func main() { } // `range` on map iterates over key/value pairs. - kvs := map[string]string{"a": "apple", "b": "bannana"} + kvs := map[string]string{"a": "apple", "b": "banana"} for k, v := range kvs { fmt.Printf("%s -> %s\n", k, v) } diff --git a/examples/reading-files/reading-files.go b/examples/reading-files/reading-files.go index 59255bf..918c612 100644 --- a/examples/reading-files/reading-files.go +++ b/examples/reading-files/reading-files.go @@ -67,7 +67,7 @@ func main() { check(err) // The `bufio` package implements a buffered - // reader that may be useful both for it's efficiency + // reader that may be useful both for its efficiency // with many small reads and because of the additional // reading methods it provides. r4 := bufio.NewReader(f) diff --git a/examples/sorting-by-functions/sorting-by-functions.go b/examples/sorting-by-functions/sorting-by-functions.go index 19c24d9..ea498ab 100644 --- a/examples/sorting-by-functions/sorting-by-functions.go +++ b/examples/sorting-by-functions/sorting-by-functions.go @@ -18,7 +18,7 @@ type ByLength []string // We implement `sort.Interface` - `Len`, `Less`, and // `Swap` - on our type so we can use the `sort` package's // generic `Sort` function. `Len` and `Swap` -// will usually be similar accross types and `Less` will +// will usually be similar across types and `Less` will // hold the actual custom sorting logic. In our case we // want to sort in order of increasing string length, so // we use `len(s[i])` and `len(s[j])` here.