]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix typo in comment
authorshogo-ma <Choroma194@gmail.com>
Fri, 20 Apr 2018 17:51:57 +0000 (17:51 +0000)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Fri, 20 Apr 2018 18:35:51 +0000 (18:35 +0000)
fix misspell on code comment.

Change-Id: I8280488f71f55616da5543eac0f58cc008354af9
GitHub-Last-Rev: ea144718ee5f6dccb3b694100e9edda923e576fc
GitHub-Pull-Request: golang/go#24975
Reviewed-on: https://go-review.googlesource.com/108458
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
src/os/os_windows_test.go

index faf0d99992524dcd933018cac38c51d6bcb3284b..e28f0f4fa5891e1512c76ea27956d7235bb04011 100644 (file)
@@ -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) {