Skip to content

Commit c406141

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some typos
Change-Id: Id4bf4ce8aee8b98baa2f1a9c62a72a9554f7d557 Reviewed-on: https://go-review.googlesource.com/c/sys/+/510595 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: shuang cui <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]>
1 parent 25d0004 commit c406141

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

unix/syscall_internal_darwin_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func Test_anyToSockaddr_darwin(t *testing.T) {
1818
err error
1919
}{
2020
{
21-
name: "AF_SYSTEM emtpy",
21+
name: "AF_SYSTEM empty",
2222
rsa: sockaddrCtlToAny(RawSockaddrCtl{}),
2323
err: EAFNOSUPPORT,
2424
},
@@ -51,7 +51,7 @@ func Test_anyToSockaddr_darwin(t *testing.T) {
5151
},
5252
},
5353
{
54-
name: "AF_VSOCK emtpy",
54+
name: "AF_VSOCK empty",
5555
rsa: sockaddrVMToAny(RawSockaddrVM{}),
5656
err: EAFNOSUPPORT,
5757
},

unix/syscall_internal_linux_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func Test_anyToSockaddr(t *testing.T) {
254254
proto: makeProto(^0),
255255
},
256256
{
257-
name: "AF_VSOCK emtpy",
257+
name: "AF_VSOCK empty",
258258
rsa: sockaddrVMToAny(RawSockaddrVM{}),
259259
err: EAFNOSUPPORT,
260260
},

windows/svc/svc_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func TestIsAnInteractiveSession(t *testing.T) {
163163
t.Fatal(err)
164164
}
165165
if !isInteractive {
166-
t.Error("IsAnInteractiveSession retuns false when running interactively.")
166+
t.Error("IsAnInteractiveSession returns false when running interactively.")
167167
}
168168
}
169169

@@ -173,7 +173,7 @@ func TestIsWindowsService(t *testing.T) {
173173
t.Fatal(err)
174174
}
175175
if isSvc {
176-
t.Error("IsWindowsService retuns true when not running in a service.")
176+
t.Error("IsWindowsService returns true when not running in a service.")
177177
}
178178
}
179179

@@ -206,7 +206,7 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) {
206206
msg = err.Error()
207207
}
208208
if isSvc {
209-
msg = "IsWindowsService retuns true when not running in a service."
209+
msg = "IsWindowsService returns true when not running in a service."
210210
}
211211
err = ioutil.WriteFile(dumpPath, []byte(msg), 0644)
212212
if err != nil {
@@ -235,12 +235,12 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) {
235235
}
236236
time.Sleep(100 * time.Millisecond)
237237
if i > 10 {
238-
t.Fatal("timed out waiting for child ouput file to be created.")
238+
t.Fatal("timed out waiting for child output file to be created.")
239239
}
240240
}
241241
childOutput, err := ioutil.ReadFile(childDumpPath)
242242
if err != nil {
243-
t.Fatalf("reading child ouput failed: %v", err)
243+
t.Fatalf("reading child output failed: %v", err)
244244
}
245245
if got, want := string(childOutput), ""; got != want {
246246
t.Fatalf("child output: want %q, got %q", want, got)

windows/syscall_windows_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestKnownFolderPath(t *testing.T) {
226226
func TestRtlGetVersion(t *testing.T) {
227227
version := windows.RtlGetVersion()
228228
major, minor, build := windows.RtlGetNtVersionNumbers()
229-
// Go is not explictly added to the application compatibility database, so
229+
// Go is not explicitly added to the application compatibility database, so
230230
// these two functions should return the same thing.
231231
if version.MajorVersion != major || version.MinorVersion != minor || version.BuildNumber != build {
232232
t.Fatalf("%d.%d.%d != %d.%d.%d", version.MajorVersion, version.MinorVersion, version.BuildNumber, major, minor, build)

0 commit comments

Comments
 (0)