diff options
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/system.nim b/lib/system.nim index caa6e9bfd..ef6138ad1 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3127,8 +3127,8 @@ when not defined(JS): #and not defined(nimscript): proc readLine*(f: File, line: var TaintedString): bool {.tags: [ReadIOEffect], benign.} - ## reads a line of text from the file `f` into `line`. `line` must not be - ## ``nil``! May throw an IO exception. + ## reads a line of text from the file `f` into `line`. May throw an IO + ## exception. ## A line of text may be delimited by ``LF`` or ``CRLF``. The newline ## character(s) are not part of the returned string. Returns ``false`` ## if the end of the file has been reached, ``true`` otherwise. If @@ -4130,13 +4130,13 @@ template once*(body: untyped): untyped = ## re-executed on each module reload. ## ## .. code-block:: nim - ## proc draw(t: Triangle) = - ## once: - ## graphicsInit() ## - ## line(t.p1, t.p2) - ## line(t.p2, t.p3) - ## line(t.p3, t.p1) + ## proc draw(t: Triangle) = + ## once: + ## graphicsInit() + ## line(t.p1, t.p2) + ## line(t.p2, t.p3) + ## line(t.p3, t.p1) ## var alreadyExecuted {.global.} = false if not alreadyExecuted: |