summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorKoala Zen <koala@zen.net>2015-05-06 09:09:36 -0700
committerKoala Zen <koala@zen.net>2015-05-06 09:09:36 -0700
commitd620f566b23e2a765d2896884ff12b8227d4b306 (patch)
tree0f5d34653828d9242053e45b90e2be824a856382 /lib/impure/re.nim
parentb9e02b1efc14a309e613ec4d4cf8c793503bc797 (diff)
downloadNim-d620f566b23e2a765d2896884ff12b8227d4b306.tar.gz
Fix comment in re
Diffstat (limited to 'lib/impure/re.nim')
-rw-r--r--lib/impure/re.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index fb95610f6..279f8aadd 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -146,8 +146,8 @@ proc findBounds*(s: string, pattern: Regex,
 
 proc findBounds*(s: string, pattern: Regex,
                  start = 0): tuple[first, last: int] =
-  ## returns the starting position of `pattern` in `s`. If it does not
-  ## match, ``(-1,0)`` is returned.
+  ## returns the starting position and end position of ``pattern`` in ``s``.
+  ## If it does not match, ``(-1,0)`` is returned.
   var
     rtarray = initRtArray[cint](3)
     rawMatches = rtarray.getRawData