From 091fb779a1600994d7ddb7e02b4a9f124e8cecf1 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 10 Nov 2008 14:47:28 -0800 Subject: [PATCH] Protocol buffer encoding. R=rsc DELTA=1075 (1028 added, 31 deleted, 16 changed) OCL=18865 CL=18918 --- src/lib/reflect/type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/reflect/type.go b/src/lib/reflect/type.go index 8b5e88f97b1..279f6f3150d 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]; }