1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:20:03 -07:00

encoding/gob: make comment more idiomatic for *Encoder.writer

This commit is contained in:
Jes Cok 2023-08-31 19:51:20 +08:00
parent 9aaf5234bf
commit f7c11c156c

View File

@ -39,7 +39,7 @@ func NewEncoder(w io.Writer) *Encoder {
return enc
}
// writer() returns the innermost writer the encoder is using
// writer returns the innermost writer the encoder is using.
func (enc *Encoder) writer() io.Writer {
return enc.w[len(enc.w)-1]
}