aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/gob/encoder.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/gob/encoder.go')
-rw-r--r--src/encoding/gob/encoder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encoding/gob/encoder.go b/src/encoding/gob/encoder.go
index aa413939d4..7d46152aba 100644
--- a/src/encoding/gob/encoder.go
+++ b/src/encoding/gob/encoder.go
@@ -30,7 +30,7 @@ type Encoder struct {
const maxLength = 9 // Maximum size of an encoded length.
var spaceForLength = make([]byte, maxLength)
-// NewEncoder returns a new encoder that will transmit on the io.Writer.
+// NewEncoder returns a new encoder that will transmit on the [io.Writer].
func NewEncoder(w io.Writer) *Encoder {
enc := new(Encoder)
enc.w = []io.Writer{w}
@@ -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]
}