Commit 302c3dd5 authored by two's avatar two Committed by Tobias Klauser

unix: fix misspellings

Change-Id: I4e1facc318d87fdd2abca1de040fdcb25680339e
GitHub-Last-Rev: bfebe235283dd12d07c69609011e47f155ccc008
GitHub-Pull-Request: golang/sys#30
Reviewed-on: https://go-review.googlesource.com/c/159597Reviewed-by: 's avatarTobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent d5739988
......@@ -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
......
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment