aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorMartin Möhrmann <martisch@uos.de>2016-02-24 11:55:20 +0100
committerBrad Fitzpatrick <bradfitz@golang.org>2016-02-24 18:42:29 +0000
commitfdd0179bb1fdd70d405929b78c7d2fb6b61369b0 (patch)
tree5dadc692c0e8ec767846f9dfc0fee73338d0b5b8 /src/os
parent4feb47bc765d2cd7d774b0a28b06e8d81a1affe7 (diff)
downloadgo-fdd0179bb1fdd70d405929b78c7d2fb6b61369b0.tar.xz
all: fix typos and spelling
Change-Id: Icd06d99c42b8299fd931c7da821e1f418684d913 Reviewed-on: https://go-review.googlesource.com/19829 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/os')
-rw-r--r--src/os/exec/exec_test.go2
-rw-r--r--src/os/exec/lp_windows_test.go6
-rw-r--r--src/os/os_test.go2
-rw-r--r--src/os/str.go2
-rw-r--r--src/os/user/lookup_windows.go2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go
index 52b4724ab0..a69b5176d5 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -341,7 +341,7 @@ func TestExtraFilesFDShuffle(t *testing.T) {
//
// We want to test that FDs in the child do not get overwritten
// by one another as this shuffle occurs. The original implementation
- // was buggy in that in some data dependent cases it would ovewrite
+ // was buggy in that in some data dependent cases it would overwrite
// stderr in the child with one of the ExtraFile members.
// Testing for this case is difficult because it relies on using
// the same FD values as that case. In particular, an FD of 3
diff --git a/src/os/exec/lp_windows_test.go b/src/os/exec/lp_windows_test.go
index 8e1d4239bf..042e5a1389 100644
--- a/src/os/exec/lp_windows_test.go
+++ b/src/os/exec/lp_windows_test.go
@@ -117,7 +117,7 @@ func createEnv(dir, PATH, PATHEXT string) []string {
}
// createFiles copies srcPath file into multiply files.
-// It uses dir as preifx for all destination files.
+// It uses dir as prefix for all destination files.
func createFiles(t *testing.T, dir string, files []string, srcPath string) {
for _, f := range files {
installProg(t, filepath.Join(dir, f), srcPath)
@@ -431,7 +431,7 @@ var commandTests = []commandTest{
},
{
// LookPath(`a.exe`) will find `.\a.exe`, but prefixing that with
- // dir `p\a.exe` will refer to not existant file
+ // dir `p\a.exe` will refer to a non-existent file
files: []string{`a.exe`, `p\not_important_file`},
dir: `p`,
arg0: `a.exe`,
@@ -440,7 +440,7 @@ var commandTests = []commandTest{
},
{
// like above, but making test succeed by installing file
- // in refered destination (so LookPath(`a.exe`) will still
+ // in referred destination (so LookPath(`a.exe`) will still
// find `.\a.exe`, but we successfully execute `p\a.exe`)
files: []string{`a.exe`, `p\a.exe`},
dir: `p`,
diff --git a/src/os/os_test.go b/src/os/os_test.go
index 945724b2b2..68f8f2b90a 100644
--- a/src/os/os_test.go
+++ b/src/os/os_test.go
@@ -538,7 +538,7 @@ func TestReaddirStatFailures(t *testing.T) {
return s
}
- if got, want := names(mustReadDir("inital readdir")),
+ if got, want := names(mustReadDir("initial readdir")),
[]string{"good1", "good2", "x"}; !reflect.DeepEqual(got, want) {
t.Errorf("initial readdir got %q; want %q", got, want)
}
diff --git a/src/os/str.go b/src/os/str.go
index d3e03e9849..cba9fa3e8d 100644
--- a/src/os/str.go
+++ b/src/os/str.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Simple converions to avoid depending on strconv.
+// Simple conversions to avoid depending on strconv.
package os
diff --git a/src/os/user/lookup_windows.go b/src/os/user/lookup_windows.go
index 99c325ff01..9fb3c5546f 100644
--- a/src/os/user/lookup_windows.go
+++ b/src/os/user/lookup_windows.go
@@ -61,7 +61,7 @@ func lookupFullName(domain, username, domainAndUser string) (string, error) {
if err == nil {
return name, nil
}
- // domain worked neigher as a domain nor as a server
+ // domain worked neither as a domain nor as a server
// could be domain server unavailable
// pretend username is fullname
return username, nil