summaryrefslogtreecommitdiff
path: root/encode.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 19:58:52 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-10 21:44:42 -0700
commit0ce1d3e727ea347c3588f96be8a356fa6ea3bc0e (patch)
tree814b6a2d689fdba1266f59cf3a19079d1b99f354 /encode.go
parente9f3bdc767027d134a072e09f16bcccac75fa59f (diff)
tree-wide: Update various references from Go 1.18 to Go 1.20
Diffstat (limited to 'encode.go')
-rw-r--r--encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/encode.go b/encode.go
index 2d16891..2830ace 100644
--- a/encode.go
+++ b/encode.go
@@ -78,7 +78,7 @@ func NewEncoder(w io.Writer) *Encoder {
// may write partial output, whereas encodin/json would not have
// written anything.
//
-// [documentation for encoding/json.Marshal]: https://pkg.go.dev/encoding/json@go1.18#Marshal
+// [documentation for encoding/json.Marshal]: https://pkg.go.dev/encoding/json@go1.20#Marshal
func (enc *Encoder) Encode(obj any) (err error) {
if enc.isRoot {
enc.w.par.Reset()