]> Cypherpunks repositories - gostls13.git/commitdiff
debug/pe: update cstring documentation
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 21 Apr 2016 00:42:25 +0000 (10:42 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 21 Apr 2016 01:23:50 +0000 (01:23 +0000)
Updates #15345

Change-Id: If1fca1f6042571cb0ac689bbb3c294309dd6e7b4
Reviewed-on: https://go-review.googlesource.com/22331
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/debug/pe/string.go

index f0928d09c543edd84925d7b0ae3988453e3e1df3..e00bd97dd48304be672244d937484d821b517329 100644 (file)
@@ -10,9 +10,8 @@ import (
        "io"
 )
 
-// TODO(brainman): return error from cstring and see what errors we get and what to do about it
-
-// cstring converts ASCII byte sequence b to string. It stops once it finds 0.
+// cstring converts ASCII byte sequence b to string.
+// It stops once it finds 0 or reaches end of b.
 func cstring(b []byte) string {
        var i int
        for i = 0; i < len(b) && b[i] != 0; i++ {