diff --git a/hyperloglog.go b/hyperloglog.go index 1c7e120..fe5f292 100644 --- a/hyperloglog.go +++ b/hyperloglog.go @@ -100,7 +100,7 @@ func (h *HyperLogLog) GobEncode() ([]byte, error) { return buf.Bytes(), nil } -// Decode gob into a HyperLogLog structure +// GobDecode decodes gob into a HyperLogLog structure func (h *HyperLogLog) GobDecode(b []byte) error { dec := gob.NewDecoder(bytes.NewBuffer(b)) if err := dec.Decode(&h.reg); err != nil { diff --git a/hyperloglogplus.go b/hyperloglogplus.go index d8d8337..6a54e49 100644 --- a/hyperloglogplus.go +++ b/hyperloglogplus.go @@ -293,7 +293,7 @@ func (h *HyperLogLogPlus) GobEncode() ([]byte, error) { return buf.Bytes(), nil } -// Decode gob into a HyperLogLogPlus structure +// GobDecode decodes gob into a HyperLogLogPlus structure func (h *HyperLogLogPlus) GobDecode(b []byte) error { dec := gob.NewDecoder(bytes.NewBuffer(b)) if err := dec.Decode(&h.reg); err != nil {