diff options
author | Matt Riggott <flother@users.noreply.github.com> | 2017-05-04 18:09:24 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-05-04 20:09:24 +0200 |
commit | c24dc7944aae2aa108b2638a9c70a5edf5e47915 (patch) | |
tree | 8023a1834e55c103523d625fb61c2c3034a59015 /lib | |
parent | 202ecdeee802619d8e26d6cbb8c53605c54063ae (diff) | |
download | Nim-c24dc7944aae2aa108b2638a9c70a5edf5e47915.tar.gz |
Add space to fix RST in captureBetween docs (#5769)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/parseutils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/parseutils.nim b/lib/pure/parseutils.nim index 8d53a0360..b78e8d000 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) |