diff options
author | Araq <rumpf_a@web.de> | 2011-04-17 20:17:45 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-17 20:17:45 +0200 |
commit | 48dd9679bd2196369a8a6f93f6225ad730683c25 (patch) | |
tree | b688e2d7e426c571b7fd898b6866205b70925e0d /lib/system.nim | |
parent | e487c0a2491fcc144cb47b54597a320e2bf79866 (diff) | |
download | Nim-48dd9679bd2196369a8a6f93f6225ad730683c25.tar.gz |
:= templatable; lexer improvements
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-x | lib/system.nim | 6 |
1 files changed, 4 insertions, 2 deletions
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.} |