summaryrefslogtreecommitdiff
path: root/src/tparse
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse')
-rw-r--r--src/tparse/tokenize.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tparse/tokenize.go b/src/tparse/tokenize.go
index 2231907..56e866f 100644
--- a/src/tparse/tokenize.go
+++ b/src/tparse/tokenize.go
@@ -344,10 +344,10 @@ func TokenizeFile(path string) []Token {
// StringAsRunes returns a string as a rune slice
func StringAsRunes(s string) []rune {
out := []rune{}
+ var r rune
for i, j := 0, 0; i < len(s); i += j {
- r, w := utf8.DecodeRuneInString(s[i:])
+ r, j = utf8.DecodeRuneInString(s[i:])
out = append(out, r)
- j = w
}
return out
}