Skip to content

Commit c2754ec

Browse files
committed
Merge remote-tracking branches 'nikai3d/patch-4', 'nikai3d/patch-5', 'nikai3d/patch-6' and 'nikai3d/patch-7'
5 parents 709db56 + 15995bd + 598c694 + 4f9734d + 67088c8 commit c2754ec

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/execing-processes/execing-processes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import "os/exec"
1717
func main() {
1818

1919
// For our example we'll exec `ls`. Go requires an
20-
// abolute path to the binary we want to execute, so
20+
// absolute path to the binary we want to execute, so
2121
// we'll use `exec.LookPath` to find it (probably
2222
// `/bin/ls`).
2323
binary, lookErr := exec.LookPath("ls")
@@ -36,7 +36,7 @@ func main() {
3636
env := os.Environ()
3737

3838
// Here's the actual `os.Exec` call. If this call is
39-
// succesful, the execution of our process will end
39+
// successful, the execution of our process will end
4040
// here and be replaced by the `/bin/ls -a -l -h`
4141
// process. If there is an error we'll get a return
4242
// value.

examples/range/range.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func main() {
2929
}
3030

3131
// `range` on map iterates over key/value pairs.
32-
kvs := map[string]string{"a": "apple", "b": "bannana"}
32+
kvs := map[string]string{"a": "apple", "b": "banana"}
3333
for k, v := range kvs {
3434
fmt.Printf("%s -> %s\n", k, v)
3535
}

examples/reading-files/reading-files.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func main() {
6767
check(err)
6868

6969
// The `bufio` package implements a buffered
70-
// reader that may be useful both for it's efficiency
70+
// reader that may be useful both for its efficiency
7171
// with many small reads and because of the additional
7272
// reading methods it provides.
7373
r4 := bufio.NewReader(f)

examples/sorting-by-functions/sorting-by-functions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type ByLength []string
1818
// We implement `sort.Interface` - `Len`, `Less`, and
1919
// `Swap` - on our type so we can use the `sort` package's
2020
// generic `Sort` function. `Len` and `Swap`
21-
// will usually be similar accross types and `Less` will
21+
// will usually be similar across types and `Less` will
2222
// hold the actual custom sorting logic. In our case we
2323
// want to sort in order of increasing string length, so
2424
// we use `len(s[i])` and `len(s[j])` here.

0 commit comments

Comments
 (0)