From 5ce8e0b5cd2d9f0aa181dd03334bb99e398af089 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 26 Feb 2017 01:02:50 +0100 Subject: [PATCH] better docs for strutils.escape --- lib/pure/strutils.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 9c9da92c61..9b25263377 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -1652,6 +1652,7 @@ proc escape*(s: string, prefix = "\"", suffix = "\""): string {.noSideEffect, ## The procedure has been designed so that its output is usable for many ## different common syntaxes. The resulting string is prefixed with ## `prefix` and suffixed with `suffix`. Both may be empty strings. + ## **Note**: This is not correct for producing Ansi C code! result = newStringOfCap(s.len + s.len shr 2) result.add(prefix) for c in items(s):