From 11f1041022e001869de076699f297b28d25fc558 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Thu, 21 Apr 2016 10:42:25 +1000 Subject: [PATCH] debug/pe: update cstring documentation Updates #15345 Change-Id: If1fca1f6042571cb0ac689bbb3c294309dd6e7b4 Reviewed-on: https://go-review.googlesource.com/22331 Reviewed-by: Ian Lance Taylor Run-TryBot: Alex Brainman TryBot-Result: Gobot Gobot --- src/debug/pe/string.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/debug/pe/string.go b/src/debug/pe/string.go index f0928d09c5..e00bd97dd4 100644 --- a/src/debug/pe/string.go +++ b/src/debug/pe/string.go @@ -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++ { -- 2.48.1