summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-10-23 19:36:17 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-10-23 19:36:17 +0200
commitc7eaa8ae034fc22fcb91770f94e08f7c1ebb9963 (patch)
treeaca4374368349ed9e3b38de124ef9e8ce82284db
parent8dedfdb236cc50a811ec3423de492368d4ed6329 (diff)
parentd1bb246c20ac08c47dafa0eab7a9a9856f5ac163 (diff)
downloadNim-c7eaa8ae034fc22fcb91770f94e08f7c1ebb9963.tar.gz
Merge pull request #3470 from FedericoCeratto/patch-5
Replace "prefix" with "suffix" in endsWith doc
-rw-r--r--lib/pure/pegs.nim2
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: