Merge pull request #3470 from FedericoCeratto/patch-5

Replace "prefix" with "suffix" in endsWith doc
This commit is contained in:
Andreas Rumpf 2015-10-23 19:36:17 +02:00
commit c7eaa8ae03

View file

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