1
0
mirror of https://github.com/golang/go synced 2024-10-03 18:21:21 -06:00

Protocol buffer encoding.

R=rsc
DELTA=1075  (1028 added, 31 deleted, 16 changed)
OCL=18865
CL=18918
This commit is contained in:
Rob Pike 2008-11-10 14:47:28 -08:00
parent 176e256b26
commit 091fb779a1

View 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];
}