summary refs log tree commit diff stats
path: root/lib/impure/re.nim
diff options
context:
space:
mode:
authorJosh Goebel <me@joshgoebel.com>2018-10-14 02:44:36 -0400
committerAndreas Rumpf <rumpf_a@web.de>2018-10-14 08:44:36 +0200
commit38454c6951a09b6e94414683774da9322f4a6d7e (patch)
treee3ff971393f5c9e6f84b61499d7b3a2cb84f679f /lib/impure/re.nim
parenteb946f37a7c56fb64703357a67ed098ac8dfd936 (diff)
downloadNim-38454c6951a09b6e94414683774da9322f4a6d7e.tar.gz
Fix type in docs (#9362)
Diffstat (limited to 'lib/impure/re.nim')
-rw-r--r--lib/impure/re.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index e621162d0..fe2ab426d 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -408,7 +408,7 @@ proc startsWith*(s: string, prefix: Regex): bool {.inline.} =
   result = matchLen(s, prefix) >= 0
 
 proc endsWith*(s: string, suffix: Regex): bool {.inline.} =
-  ## returns true if `s` ends with the pattern `prefix`
+  ## returns true if `s` ends with the pattern `suffix`
   for i in 0 .. s.len-1:
     if matchLen(s, suffix, i) == s.len - i: return true