From 6b555e78b74c8a7b7f02a1f6fa863c3ee35e26e7 Mon Sep 17 00:00:00 2001 From: Jjp137 Date: Sun, 26 Jul 2020 23:17:23 -0700 Subject: [PATCH] parsecsv: fix '\0' being displayed as '0' in docs (#15086) [backport] (cherry picked from commit a62bc5595598d6cc0f1e4edf1458fdbbda025572) --- lib/pure/parsecsv.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/parsecsv.nim b/lib/pure/parsecsv.nim index 44703e3f88..607702fc0f 100644 --- a/lib/pure/parsecsv.nim +++ b/lib/pure/parsecsv.nim @@ -108,10 +108,10 @@ proc open*(my: var CsvParser, input: Stream, filename: string, ## the diverse optional parameters: ## - `separator`: character used to separate fields ## - `quote`: Used to quote fields containing special characters like - ## `separator`, `quote` or new-line characters. '\0' disables the parsing + ## `separator`, `quote` or new-line characters. '\\0' disables the parsing ## of quotes. ## - `escape`: removes any special meaning from the following character; - ## '\0' disables escaping; if escaping is disabled and `quote` is not '\0', + ## '\\0' disables escaping; if escaping is disabled and `quote` is not '\\0', ## two `quote` characters are parsed one literal `quote` character. ## - `skipInitialSpace`: If true, whitespace immediately following the ## `separator` is ignored.