From cd24d6f2d059148fbe7ddfcf3e4d9ab68221c057 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 9 Dec 2016 00:25:48 +0100 Subject: [PATCH] typo --- common/alloc/buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/alloc/buffer.go b/common/alloc/buffer.go index 821808218..c860340f7 100644 --- a/common/alloc/buffer.go +++ b/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.