]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix typo in documentation for StringToUTF16Ptr
authorTommy Schaefer <tommy.schaefer@teecom.com>
Fri, 28 Apr 2017 04:53:58 +0000 (23:53 -0500)
committerRob Pike <r@golang.org>
Fri, 28 Apr 2017 05:28:27 +0000 (05:28 +0000)
Fixes #20133

Change-Id: Ic1a6eb35de1f9ddac9527335eb49bf0b52963b6a
Reviewed-on: https://go-review.googlesource.com/41992
Reviewed-by: Rob Pike <r@golang.org>
src/syscall/syscall_windows.go

index 7f92bf7ca4d61e99114097edb17ea8c86a8ac9d5..551a8c0dd3a4eecf01b4e390de4197e171f7c6a2 100644 (file)
@@ -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.