summaryrefslogtreecommitdiff
path: root/decode_scan.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:15:13 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:15:13 -0700
commit0b57145421e7e4f165f64e73ee7c5d8102945569 (patch)
tree25584309e42bb53469959a3725393bdbc8b225c7 /decode_scan.go
parentffee5c8516f3f55f82ed5bb8f0a4f340d485fa92 (diff)
parent7e00adcf43b18a22ffbbadc79b8681a5d871f448 (diff)
Merge branch 'lukeshu/quality'
This branch works to improve code quality, without making any substantive changes.
Diffstat (limited to 'decode_scan.go')
-rw-r--r--decode_scan.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/decode_scan.go b/decode_scan.go
index 5e33760..249975d 100644
--- a/decode_scan.go
+++ b/decode_scan.go
@@ -30,11 +30,14 @@ type runeTypeScanner interface {
// runeTypeScannerImpl /////////////////////////////////////////////////////////////////////////////
type runeTypeScannerImpl struct {
- inner io.RuneScanner
+ // everything that is not "initialized by constructor" starts
+ // out as the zero value.
+
+ inner io.RuneScanner // initialized by constructor
initialized bool
- parser internal.Parser
+ parser internal.Parser // initialized by constructor
offset int64
repeat bool