diff options
author | Araq <rumpf_a@web.de> | 2017-02-26 01:02:50 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-26 01:02:50 +0100 |
commit | 5ce8e0b5cd2d9f0aa181dd03334bb99e398af089 (patch) | |
tree | 909bcf2060940ecc328d3e8c4fd2188104e20b64 | |
parent | 2589d69ed2d215689141af77f81b9b6431acf5ee (diff) | |
download | Nim-5ce8e0b5cd2d9f0aa181dd03334bb99e398af089.tar.gz |
better docs for strutils.escape
-rw-r--r-- | lib/pure/strutils.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 9c9da92c6..9b2526337 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): |