diff options
author | Josh Goebel <me@joshgoebel.com> | 2018-10-14 02:44:36 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-14 08:44:36 +0200 |
commit | 38454c6951a09b6e94414683774da9322f4a6d7e (patch) | |
tree | e3ff971393f5c9e6f84b61499d7b3a2cb84f679f /lib/impure | |
parent | eb946f37a7c56fb64703357a67ed098ac8dfd936 (diff) | |
download | Nim-38454c6951a09b6e94414683774da9322f4a6d7e.tar.gz |
Fix type in docs (#9362)
Diffstat (limited to 'lib/impure')
-rw-r--r-- | lib/impure/re.nim | 2 |
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 |