Skip to content

Commit

Permalink
all: fix some typos
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cuishuang authored and gopherbot committed Jul 19, 2023
1 parent 25d0004 commit c406141
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions unix/syscall_internal_darwin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func Test_anyToSockaddr_darwin(t *testing.T) {
err error
}{
{
name: "AF_SYSTEM emtpy",
name: "AF_SYSTEM empty",
rsa: sockaddrCtlToAny(RawSockaddrCtl{}),
err: EAFNOSUPPORT,
},
Expand Down Expand Up @@ -51,7 +51,7 @@ func Test_anyToSockaddr_darwin(t *testing.T) {
},
},
{
name: "AF_VSOCK emtpy",
name: "AF_VSOCK empty",
rsa: sockaddrVMToAny(RawSockaddrVM{}),
err: EAFNOSUPPORT,
},
Expand Down
2 changes: 1 addition & 1 deletion unix/syscall_internal_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func Test_anyToSockaddr(t *testing.T) {
proto: makeProto(^0),
},
{
name: "AF_VSOCK emtpy",
name: "AF_VSOCK empty",
rsa: sockaddrVMToAny(RawSockaddrVM{}),
err: EAFNOSUPPORT,
},
Expand Down
10 changes: 5 additions & 5 deletions windows/svc/svc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestIsAnInteractiveSession(t *testing.T) {
t.Fatal(err)
}
if !isInteractive {
t.Error("IsAnInteractiveSession retuns false when running interactively.")
t.Error("IsAnInteractiveSession returns false when running interactively.")
}
}

Expand All @@ -173,7 +173,7 @@ func TestIsWindowsService(t *testing.T) {
t.Fatal(err)
}
if isSvc {
t.Error("IsWindowsService retuns true when not running in a service.")
t.Error("IsWindowsService returns true when not running in a service.")
}
}

Expand Down Expand Up @@ -206,7 +206,7 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) {
msg = err.Error()
}
if isSvc {
msg = "IsWindowsService retuns true when not running in a service."
msg = "IsWindowsService returns true when not running in a service."
}
err = ioutil.WriteFile(dumpPath, []byte(msg), 0644)
if err != nil {
Expand Down Expand Up @@ -235,12 +235,12 @@ func TestIsWindowsServiceWhenParentExits(t *testing.T) {
}
time.Sleep(100 * time.Millisecond)
if i > 10 {
t.Fatal("timed out waiting for child ouput file to be created.")
t.Fatal("timed out waiting for child output file to be created.")
}
}
childOutput, err := ioutil.ReadFile(childDumpPath)
if err != nil {
t.Fatalf("reading child ouput failed: %v", err)
t.Fatalf("reading child output failed: %v", err)
}
if got, want := string(childOutput), ""; got != want {
t.Fatalf("child output: want %q, got %q", want, got)
Expand Down
2 changes: 1 addition & 1 deletion windows/syscall_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func TestKnownFolderPath(t *testing.T) {
func TestRtlGetVersion(t *testing.T) {
version := windows.RtlGetVersion()
major, minor, build := windows.RtlGetNtVersionNumbers()
// Go is not explictly added to the application compatibility database, so
// Go is not explicitly added to the application compatibility database, so
// these two functions should return the same thing.
if version.MajorVersion != major || version.MinorVersion != minor || version.BuildNumber != build {
t.Fatalf("%d.%d.%d != %d.%d.%d", version.MajorVersion, version.MinorVersion, version.BuildNumber, major, minor, build)
Expand Down

0 comments on commit c406141

Please sign in to comment.