From 15995bda0b42464bfc6392b09a7de6e4ef0a0747 Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser Date: Sat, 24 Nov 2012 11:07:06 +0100 Subject: [PATCH 1/4] Fix misspelled "across" --- examples/sorting-by-functions/sorting-by-functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 598c6940b36ccaa8c5d0273c72557b7555e163bc Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser Date: Sat, 24 Nov 2012 11:08:46 +0100 Subject: [PATCH 2/4] Fix misspelled "banana" --- examples/range/range.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } From 4f9734df0f0a6c711d3bd2dda96a4cfc99bc593a Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser Date: Sat, 24 Nov 2012 13:36:13 +0100 Subject: [PATCH 3/4] Fix misspelled "its" --- examples/reading-files/reading-files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 67088c8a190bb844e40dd07f66610c215440f455 Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser Date: Sat, 24 Nov 2012 20:29:37 +0100 Subject: [PATCH 4/4] Fix misspelled "absolute" and "successful" --- examples/execing-processes/execing-processes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.