]> Cypherpunks repositories - gostls13.git/commitdiff
Protocol buffer encoding.
authorRob Pike <r@golang.org>
Mon, 10 Nov 2008 22:47:28 +0000 (14:47 -0800)
committerRob Pike <r@golang.org>
Mon, 10 Nov 2008 22:47:28 +0000 (14:47 -0800)
R=rsc
DELTA=1075  (1028 added, 31 deleted, 16 changed)
OCL=18865
CL=18918

src/lib/reflect/type.go

index 8b5e88f97b18396fe8049d91516659ed55898871..279f6f3150d1e77aa0468900294d11a12f5fcd1d 100644 (file)
@@ -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];
 }