From 38454c6951a09b6e94414683774da9322f4a6d7e Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sun, 14 Oct 2018 02:44:36 -0400 Subject: Fix type in docs (#9362) --- 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 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 -- cgit 1.4.1-2-gfad0