Fix type in docs (#9362)

This commit is contained in:
Josh Goebel
2018-10-14 02:44:36 -04:00
committed by Andreas Rumpf
parent eb946f37a7
commit 38454c6951

View File

@@ -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