summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-02-23 11:29:46 +0100
committerAndreas Rumpf <rumpf_a@web.de>2014-02-23 11:29:46 +0100
commit587f94f85b66c70e5006bd2b2de0d42d44b639d7 (patch)
tree30597e7c9e22702b23b8f939c9b661be102aba14 /lib
parent3b5825e9bcf09bb6da98601d07af10c2640f4cd1 (diff)
parent12c95f31dcd6587d09f9eeedfd58d1ec96189abd (diff)
downloadNim-587f94f85b66c70e5006bd2b2de0d42d44b639d7.tar.gz
Merge pull request #946 from gradha/pr_documents_readall
Documents system.readAll() limitations. Refs #298.
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 2acb989c5..b683a4955 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2014,8 +2014,10 @@ when not defined(JS): #and not defined(NimrodVM):
       ## Flushes `f`'s buffer.
 
     proc readAll*(file: TFile): TaintedString {.tags: [FReadIO].}
-      ## Reads all data from the stream `file`. Raises an IO exception
-      ## in case of an error
+      ## Reads all data from the stream `file`.
+      ##
+      ## Raises an IO exception in case of an error. It is an error if the
+      ## current file position is not at the beginning of the file.
     
     proc readFile*(filename: string): TaintedString {.tags: [FReadIO].}
       ## Opens a file named `filename` for reading. Then calls `readAll`