mirror of
https://github.com/golang/go.git
synced 2025-05-18 13:54:40 +00:00
encoding/gob: make comment more idiomatic for *Encoder.writer
Change-Id: I89a4d7f4af8dfb67a35647283be6c1d2965595f5 GitHub-Last-Rev: f7c11c156cd0c1d7e9e811c5eb2d19d233c568dd GitHub-Pull-Request: golang/go#62389 Reviewed-on: https://go-review.googlesource.com/c/go/+/524735 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
96fe257a42
commit
9a9aa6e238
@ -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…
x
Reference in New Issue
Block a user