Browse Source

Fix comment for Buffer.index field

PiperOrigin-RevId: 130332792
light 9 years ago
parent
commit
7390af9dcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      proto/lib.go

+ 1 - 1
proto/lib.go

@@ -308,7 +308,7 @@ func GetStats() Stats { return stats }
 // temporary Buffer and are fine for most applications.
 type Buffer struct {
 	buf   []byte // encode/decode byte stream
-	index int    // write point
+	index int    // read point
 
 	// pools of basic types to amortize allocation.
 	bools   []bool