aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTommy Schaefer <tommy.schaefer@teecom.com>2017-04-27 23:53:58 -0500
committerRob Pike <r@golang.org>2017-04-28 05:28:27 +0000
commit4fcceca192b0379d068cbda75e120d9bd51719fa (patch)
tree7026e983ead04ed5a4a30539d91ae4340eb0ac9f /src
parentc51559813f615aa33ca42c0ad963d7712f561433 (diff)
downloadgo-4fcceca192b0379d068cbda75e120d9bd51719fa.tar.xz
syscall: fix typo in documentation for StringToUTF16Ptr
Fixes #20133 Change-Id: Ic1a6eb35de1f9ddac9527335eb49bf0b52963b6a Reviewed-on: https://go-review.googlesource.com/41992 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/syscall/syscall_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/syscall_windows.go b/src/syscall/syscall_windows.go
index 7f92bf7ca4..551a8c0dd3 100644
--- a/src/syscall/syscall_windows.go
+++ b/src/syscall/syscall_windows.go
@@ -57,7 +57,7 @@ func UTF16ToString(s []uint16) string {
// StringToUTF16Ptr returns pointer to the UTF-16 encoding of
// the UTF-8 string s, with a terminating NUL added. If s
-// If s contains a NUL byte this function panics instead of
+// contains a NUL byte this function panics instead of
// returning an error.
//
// Deprecated: Use UTF16PtrFromString instead.