mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
Merge pull request #3470 from FedericoCeratto/patch-5
Replace "prefix" with "suffix" in endsWith doc
This commit is contained in:
@@ -886,7 +886,7 @@ proc startsWith*(s: string, prefix: Peg, start = 0): bool {.
|
||||
|
||||
proc endsWith*(s: string, suffix: Peg, start = 0): bool {.
|
||||
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
|
||||
c.origStart = start
|
||||
for i in start .. s.len-1:
|
||||
|
||||
Reference in New Issue
Block a user