From b52240fc9e7991926345f3b3a34175b66da1f783 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 15 Sep 2016 04:21:55 +0200 Subject: [PATCH] system: TaintedString: reduce duplication and link to manual --- lib/system.nim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index be87f35d06..4cd0378b7f 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1313,20 +1313,20 @@ when defined(boehmgc): when taintMode: type TaintedString* = distinct string ## a distinct string type that - ## is `tainted`:idx:. It is an alias for + ## is `tainted`:idx:, see `taint mode + ## `_ for + ## details. It is an alias for ## ``string`` if the taint mode is not - ## turned on. Use the ``-d:taintMode`` - ## command line switch to turn the taint - ## mode on. + ## turned on. proc len*(s: TaintedString): int {.borrow.} else: type TaintedString* = string ## a distinct string type that - ## is `tainted`:idx:. It is an alias for + ## is `tainted`:idx:, see `taint mode + ## `_ for + ## details. It is an alias for ## ``string`` if the taint mode is not - ## turned on. Use the ``-d:taintMode`` - ## command line switch to turn the taint - ## mode on. + ## turned on. when defined(profiler): proc nimProfile() {.compilerProc, noinline.}