Darien Raymond 9 năm trước cách đây
mục cha
commit
cd24d6f2d0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/alloc/buffer.go

+ 1 - 1
common/alloc/buffer.go

@@ -185,7 +185,7 @@ func (b *Buffer) FillFullFrom(reader io.Reader, amount int) (int, error) {
 }
 
 func (b *Buffer) String() string {
-	return string(b.v[b.start:b.end])
+	return string(b.Bytes())
 }
 
 // NewBuffer creates a Buffer with 8K bytes of arbitrary content.