summaryrefslogtreecommitdiff
path: root/lib/std/optparse.myr
diff options
context:
space:
mode:
authorS. Gilles <sgilles@math.umd.edu>2017-11-05 04:11:27 -0500
committerOri Bernstein <ori@eigenstate.org>2017-11-05 20:52:12 -0800
commitf8f5b71ca85fed63d295f50e3f45ba3230edaead (patch)
tree2dc6c605daf0bb9735a3b197596a8ccae519029d /lib/std/optparse.myr
parenta2a63e13a470401d10625a0d5be163767adb7e46 (diff)
downloadmc-f8f5b71ca85fed63d295f50e3f45ba3230edaead.tar.gz
Implement graphemestep
And change 'strstep' to 'charstep' for consistency, now that it has a sibling function.
Diffstat (limited to 'lib/std/optparse.myr')
-rw-r--r--lib/std/optparse.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/optparse.myr b/lib/std/optparse.myr
index 0569dfc..6202aa4 100644
--- a/lib/std/optparse.myr
+++ b/lib/std/optparse.myr
@@ -105,7 +105,7 @@ const optnext = {ctx
var c
var arg
- (c, ctx.curarg) = strstep(ctx.curarg)
+ (c, ctx.curarg) = charstep(ctx.curarg)
match optinfo(ctx, c)
| `None: