From 48dd9679bd2196369a8a6f93f6225ad730683c25 Mon Sep 17 00:00:00 2001 From: Araq <rumpf_a@web.de> Date: Sun, 17 Apr 2011 20:17:45 +0200 Subject: := templatable; lexer improvements --- lib/system.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/system.nim') diff --git a/lib/system.nim b/lib/system.nim index 8fc4493dd..6490ce416 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -650,13 +650,15 @@ proc setLen*[T](s: var seq[T], newlen: int) {. ## sets the length of `s` to `newlen`. ## ``T`` may be any sequence type. ## If the current length is greater than the new length, - ## ``s`` will be truncated. + ## ``s`` will be truncated. `s` cannot be nil! To initialize a sequence with + ## a size, use ``newSeq`` instead. proc setLen*(s: var string, newlen: int) {. magic: "SetLengthStr", noSideEffect.} ## sets the length of `s` to `newlen`. ## If the current length is greater than the new length, - ## ``s`` will be truncated. + ## ``s`` will be truncated. `s` cannot be nil! To initialize a string with + ## a size, use ``newString`` instead. proc newString*(len: int): string {. magic: "NewString", importc: "mnewString", noSideEffect.} -- cgit 1.4.1-2-gfad0