summary refs log tree commit diff stats
path: root/lib/pure/pegs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-03-27 00:33:20 +0100
committerAraq <rumpf_a@web.de>2011-03-27 00:33:20 +0100
commitdc669155e39007f1b584eef247dff90523f836bf (patch)
tree5233362a6af2ac7232159ffebb7bfc19ea27026b /lib/pure/pegs.nim
parent45f8d31c4718fb20498b16a621f3d14b3056b5cc (diff)
downloadNim-dc669155e39007f1b584eef247dff90523f836bf.tar.gz
some little bugfixes
Diffstat (limited to 'lib/pure/pegs.nim')
-rwxr-xr-xlib/pure/pegs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim
index 6ad52c9a1..2e1d0f0ad 100755
--- a/lib/pure/pegs.nim
+++ b/lib/pure/pegs.nim
@@ -751,7 +751,7 @@ proc match*(s: string, pattern: TPeg, matches: var openarray[string],
   ## returned.
   var c: TCaptures
   c.origStart = start
-  result = rawMatch(s, pattern, start, c) == len(s) -start
+  result = rawMatch(s, pattern, start, c) == len(s) - start
   if result:
     for i in 0..c.ml-1:
       matches[i] = copy(s, c.matches[i][0], c.matches[i][1])