From 302c3dd5f1cc82baae8e44d9c3178e89b6e2b345 Mon Sep 17 00:00:00 2001 From: two Date: Tue, 29 Jan 2019 07:41:26 +0000 Subject: [PATCH] unix: fix misspellings Change-Id: I4e1facc318d87fdd2abca1de040fdcb25680339e GitHub-Last-Rev: bfebe235283dd12d07c69609011e47f155ccc008 GitHub-Pull-Request: golang/sys#30 Reviewed-on: https://go-review.googlesource.com/c/159597 Reviewed-by: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot --- unix/syscall_aix.go | 2 +- unix/syscall_unix_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/syscall_aix.go b/unix/syscall_aix.go index 1351a228..a76826f4 100644 --- a/unix/syscall_aix.go +++ b/unix/syscall_aix.go @@ -227,7 +227,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { // Some versions of AIX have a bug in getsockname (see IV78655). // We can't rely on sa.Len being set correctly. - n := SizeofSockaddrUnix - 3 // substract leading Family, Len, terminating NUL. + n := SizeofSockaddrUnix - 3 // subtract leading Family, Len, terminating NUL. for i := 0; i < n; i++ { if pp.Path[i] == 0 { n = i diff --git a/unix/syscall_unix_test.go b/unix/syscall_unix_test.go index c393f68d..ab65ce65 100644 --- a/unix/syscall_unix_test.go +++ b/unix/syscall_unix_test.go @@ -642,7 +642,7 @@ func TestRenameat(t *testing.T) { _, err = os.Stat(from) if err == nil { - t.Errorf("Renameat: stat of renamed file %q unexpectedly suceeded", from) + t.Errorf("Renameat: stat of renamed file %q unexpectedly succeeded", from) } }