From d1bb246c20ac08c47dafa0eab7a9a9856f5ac163 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Fri, 23 Oct 2015 17:35:55 +0100 Subject: [PATCH] Replace "prefix" with "suffix" in endsWith doc --- lib/pure/pegs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 39f0bfa95e..54d7ef761c 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: