From c24dc7944aae2aa108b2638a9c70a5edf5e47915 Mon Sep 17 00:00:00 2001 From: Matt Riggott Date: Thu, 4 May 2017 18:09:24 +0000 Subject: [PATCH] Add space to fix RST in captureBetween docs (#5769) --- lib/pure/parseutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/parseutils.nim b/lib/pure/parseutils.nim index 8d53a0360a..b78e8d0004 100644 --- a/lib/pure/parseutils.nim +++ b/lib/pure/parseutils.nim @@ -201,7 +201,7 @@ proc parseWhile*(s: string, token: var string, validChars: set[char], proc captureBetween*(s: string, first: char, second = '\0', start = 0): string = ## Finds the first occurrence of ``first``, then returns everything from there - ## up to ``second``(if ``second`` is '\0', then ``first`` is used). + ## up to ``second`` (if ``second`` is '\0', then ``first`` is used). var i = skipUntil(s, first, start)+1+start result = "" discard s.parseUntil(result, if second == '\0': first else: second, i)