summaryrefslogtreecommitdiff
path: root/decode_scan.go
diff options
context:
space:
mode:
Diffstat (limited to 'decode_scan.go')
-rw-r--r--decode_scan.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/decode_scan.go b/decode_scan.go
index e233caf..521c5c4 100644
--- a/decode_scan.go
+++ b/decode_scan.go
@@ -45,6 +45,8 @@ func (sc *runeTypeScanner) Reset() {
}
// tell it to use that rType and rErr
_ = sc.UnreadRune() // we set it up to always succeed
+ } else {
+ sc.initialized = false
}
}