mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-27 09:43:58 +00:00
Fix type in docs (#9362)
This commit is contained in:
committed by
Andreas Rumpf
parent
eb946f37a7
commit
38454c6951
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user