summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-24 22:01:12 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-24 22:01:12 -0800
commit14fd8b9e92ffe32275aba6f30dd8edf4531c6a19 (patch)
tree9dbf70b2c06ffa15da7930dd2259b021ed05d0ec /lib/regex
parent77a5bd52ac777a95a22395227f29084e49569370 (diff)
downloadmc-14fd8b9e92ffe32275aba6f30dd8edf4531c6a19.tar.gz
Land char iterators.
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/compile.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/regex/compile.myr b/lib/regex/compile.myr
index 3cee04b..d62d006 100644
--- a/lib/regex/compile.myr
+++ b/lib/regex/compile.myr
@@ -773,7 +773,7 @@ const matchc = {re, c
var str
var chr
- (chr, str) = std.striter(re.pat)
+ (chr, str) = std.strstep(re.pat)
if chr != c
-> false
;;
@@ -784,14 +784,14 @@ const matchc = {re, c
const getc = {re
var c
- (c, re.pat) = std.striter(re.pat)
+ (c, re.pat) = std.strstep(re.pat)
-> c
}
const peekc = {re
var c
- (c, _) = std.striter(re.pat)
+ (c, _) = std.strstep(re.pat)
-> c
}