diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-18 22:45:18 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-18 22:45:18 -0700 |
commit | ec0482f598f4b7b05c21b1d19fe8183665e3fe93 (patch) | |
tree | 7f8999f73fa4e4c5759a174cebed7c8919fa05e1 /decode_scan.go | |
parent | 56e05985f999e9f3d8cda96026f5a2f68d28d016 (diff) |
decode_scan: Fix a doc comment
Diffstat (limited to 'decode_scan.go')
-rw-r--r-- | decode_scan.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/decode_scan.go b/decode_scan.go index 1f29a95..7911c01 100644 --- a/decode_scan.go +++ b/decode_scan.go @@ -84,11 +84,11 @@ func (sc *runeTypeScanner) ReadRuneType() (rune, int, jsonparse.RuneType, error) return sc.rRune, sc.rSize, sc.rType, sc.rErr } -// UnreadRune undoes a call to .ReadRune() or .ReadRuneType(). +// UnreadRune undoes a call to .ReadRuneType(). // -// If the last call to .ReadRune() or .ReadRuneType() has already been -// unread, or if that call returned a rune with size 0, then -// ErrInvalidUnreadRune is returned. Otherwise, nil is returned. +// If the last call to .ReadRuneType() has already been unread, or if +// that call returned a rune with size 0, then ErrInvalidUnreadRune is +// returned. Otherwise, nil is returned. func (sc *runeTypeScanner) UnreadRune() error { if sc.repeat || sc.rSize == 0 { return ErrInvalidUnreadRune |