From 5b3b091cd1453db2a9b29e068a6e5670b1305a1f Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sun, 14 Oct 2018 02:44:36 -0400 Subject: [PATCH] Fix type in docs (#9362) (cherry picked from commit 38454c6951a09b6e94414683774da9322f4a6d7e) --- lib/impure/re.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/impure/re.nim b/lib/impure/re.nim index e621162d0d..fe2ab426d8 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