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:
parent
9aaf5234bf
commit
f7c11c156c
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user