From: Rob Pike Date: Mon, 10 Nov 2008 22:47:28 +0000 (-0800) Subject: Protocol buffer encoding. X-Git-Tag: weekly.2009-11-06~2758 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=091fb779a1600994d7ddb7e02b4a9f124e8cecf1;p=gostls13.git Protocol buffer encoding. R=rsc DELTA=1075 (1028 added, 31 deleted, 16 changed) OCL=18865 CL=18918 --- diff --git a/src/lib/reflect/type.go b/src/lib/reflect/type.go index 8b5e88f97b..279f6f3150 100644 --- a/src/lib/reflect/type.go +++ b/src/lib/reflect/type.go @@ -561,8 +561,8 @@ type Parser struct { index int; // next character position in str } -// Return typestring starting at position i. -// Trim trailing blanks. +// Return typestring starting at position i. It will finish at the +// end of the previous token (before trailing white space). func (p *Parser) TypeString(i int) string { return p.str[i:p.prevend]; }