зеркало из https://github.com/golang/sys.git
unix: fix misspellings
Change-Id: I4e1facc318d87fdd2abca1de040fdcb25680339e
GitHub-Last-Rev: bfebe23528
GitHub-Pull-Request: golang/sys#30
Reviewed-on: https://go-review.googlesource.com/c/159597
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Родитель
d57399882c
Коммит
302c3dd5f1
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче