diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-11-04 22:44:25 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-11-04 22:44:25 -0400 |
commit | 8cdf25536841a698ad6229f73cdf8ef5ccc1e5fa (patch) | |
tree | ee7d4946057d25b480fcb26f8d0507006f31e40e /src/tparse/tokenize.go | |
parent | b988a5838635e365d9a165df0db7263cbb34d4a0 (diff) |
[EXEC] Flush out a couple of funcs
+ I no longer understand my own code.
Diffstat (limited to 'src/tparse/tokenize.go')
-rw-r--r-- | src/tparse/tokenize.go | 4 |
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 } |