From ea144718ee5f6dccb3b694100e9edda923e576fc Mon Sep 17 00:00:00 2001 From: shogo-ma Date: Sat, 21 Apr 2018 02:29:34 +0900 Subject: [PATCH] os: fix typo in comment --- src/os/os_windows_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/os_windows_test.go b/src/os/os_windows_test.go index faf0d99992..e28f0f4fa5 100644 --- a/src/os/os_windows_test.go +++ b/src/os/os_windows_test.go @@ -191,7 +191,7 @@ func (rd *reparseData) addUTF16s(s []uint16) (offset uint16) { func (rd *reparseData) addString(s string) (offset, length uint16) { p := syscall.StringToUTF16(s) - return rd.addUTF16s(p), uint16(len(p)-1) * 2 // do not include terminating NUL in the legth (as per PrintNameLength and SubstituteNameLength documentation) + return rd.addUTF16s(p), uint16(len(p)-1) * 2 // do not include terminating NUL in the length (as per PrintNameLength and SubstituteNameLength documentation) } func (rd *reparseData) addSubstituteName(name string) {