aboutsummaryrefslogtreecommitdiff
path: root/src/syscall
diff options
context:
space:
mode:
authorIgor Zhilianin <igor.zhilianin@gmail.com>2018-10-06 06:10:25 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-10-06 15:40:03 +0000
commitf90e89e675443731e36c2de4bcd3cdd7316d3dfc (patch)
tree7aac9648f2ffbf756b1dfdb242bdee3d795d5b04 /src/syscall
parent9f193fbe31d7ffa5f6e71a6387cbcf4636306660 (diff)
downloadgo-f90e89e675443731e36c2de4bcd3cdd7316d3dfc.tar.xz
all: fix a bunch of misspellings
Change-Id: If2954bdfc551515403706b2cd0dde94e45936e08 GitHub-Last-Rev: d4cfc41a5504cf10befefdb881d4c45986a1d1f8 GitHub-Pull-Request: golang/go#28049 Reviewed-on: https://go-review.googlesource.com/c/140299 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/syscall')
-rw-r--r--src/syscall/mksyscall_windows.go2
-rw-r--r--src/syscall/syscall_windows.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/syscall/mksyscall_windows.go b/src/syscall/mksyscall_windows.go
index 5fd3a756f8..dd84e33c0f 100644
--- a/src/syscall/mksyscall_windows.go
+++ b/src/syscall/mksyscall_windows.go
@@ -22,7 +22,7 @@ like func declarations if //sys is replaced by func, but:
* If the return parameter is an error number, it must be named err.
-* If go func name needs to be different from it's winapi dll name,
+* If go func name needs to be different from its winapi dll name,
the winapi name could be specified at the end, after "=" sign, like
//sys LoadLibrary(libname string) (handle uint32, err error) = LoadLibraryA
diff --git a/src/syscall/syscall_windows.go b/src/syscall/syscall_windows.go
index 528ef4f26d..de05840386 100644
--- a/src/syscall/syscall_windows.go
+++ b/src/syscall/syscall_windows.go
@@ -123,14 +123,14 @@ func compileCallback(fn interface{}, cleanstack bool) uintptr
// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
// This is useful when interoperating with Windows code requiring callbacks.
-// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
+// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
func NewCallback(fn interface{}) uintptr {
return compileCallback(fn, true)
}
// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
// This is useful when interoperating with Windows code requiring callbacks.
-// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
+// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
func NewCallbackCDecl(fn interface{}) uintptr {
return compileCallback(fn, false)
}