aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/encoding/gob/encode.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/encoding/gob/encode.go')
-rw-r--r--libgo/go/encoding/gob/encode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/encoding/gob/encode.go b/libgo/go/encoding/gob/encode.go
index 5371e72..8f8f170 100644
--- a/libgo/go/encoding/gob/encode.go
+++ b/libgo/go/encoding/gob/encode.go
@@ -47,7 +47,7 @@ var encBufferPool = sync.Pool{
},
}
-func (e *encBuffer) WriteByte(c byte) {
+func (e *encBuffer) writeByte(c byte) {
e.data = append(e.data, c)
}
@@ -106,7 +106,7 @@ func (enc *Encoder) freeEncoderState(e *encoderState) {
// encodeUint writes an encoded unsigned integer to state.b.
func (state *encoderState) encodeUint(x uint64) {
if x <= 0x7F {
- state.b.WriteByte(uint8(x))
+ state.b.writeByte(uint8(x))
return
}