Replace "prefix" with "suffix" in endsWith doc
This commit is contained in:
parent
8dedfdb236
commit
d1bb246c20
1 changed files with 1 additions and 1 deletions
|
|
@ -886,7 +886,7 @@ proc startsWith*(s: string, prefix: Peg, start = 0): bool {.
|
||||||
|
|
||||||
proc endsWith*(s: string, suffix: Peg, start = 0): bool {.
|
proc endsWith*(s: string, suffix: Peg, start = 0): bool {.
|
||||||
nosideEffect, rtl, extern: "npegs$1".} =
|
nosideEffect, rtl, extern: "npegs$1".} =
|
||||||
## returns true if `s` ends with the pattern `prefix`
|
## returns true if `s` ends with the pattern `suffix`
|
||||||
var c: Captures
|
var c: Captures
|
||||||
c.origStart = start
|
c.origStart = start
|
||||||
for i in start .. s.len-1:
|
for i in start .. s.len-1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue