Переглянути джерело

Fix comment for Buffer.index field

PiperOrigin-RevId: 130332792
light 10 роки тому
батько
коміт
7390af9dcd
1 змінених файлів з 1 додано та 1 видалено
  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