Fix type in docs (#9362)
This commit is contained in:
parent
eb946f37a7
commit
38454c6951
1 changed files with 1 additions and 1 deletions
|
|
@ -408,7 +408,7 @@ proc startsWith*(s: string, prefix: Regex): bool {.inline.} =
|
||||||
result = matchLen(s, prefix) >= 0
|
result = matchLen(s, prefix) >= 0
|
||||||
|
|
||||||
proc endsWith*(s: string, suffix: Regex): bool {.inline.} =
|
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:
|
for i in 0 .. s.len-1:
|
||||||
if matchLen(s, suffix, i) == s.len - i: return true
|
if matchLen(s, suffix, i) == s.len - i: return true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue