diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-10-23 19:36:17 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-10-23 19:36:17 +0200 |
commit | c7eaa8ae034fc22fcb91770f94e08f7c1ebb9963 (patch) | |
tree | aca4374368349ed9e3b38de124ef9e8ce82284db | |
parent | 8dedfdb236cc50a811ec3423de492368d4ed6329 (diff) | |
parent | d1bb246c20ac08c47dafa0eab7a9a9856f5ac163 (diff) | |
download | Nim-c7eaa8ae034fc22fcb91770f94e08f7c1ebb9963.tar.gz |
Merge pull request #3470 from FedericoCeratto/patch-5
Replace "prefix" with "suffix" in endsWith doc
-rw-r--r-- | lib/pure/pegs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 39f0bfa95..54d7ef761 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -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: |