diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2015-10-23 17:35:55 +0100 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2015-10-23 17:35:55 +0100 |
commit | d1bb246c20ac08c47dafa0eab7a9a9856f5ac163 (patch) | |
tree | aca4374368349ed9e3b38de124ef9e8ce82284db | |
parent | 8dedfdb236cc50a811ec3423de492368d4ed6329 (diff) | |
download | Nim-d1bb246c20ac08c47dafa0eab7a9a9856f5ac163.tar.gz |
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: |