Skip to content

Commit

Permalink
Documentation staticRead maximum file size limits (#13485)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco authored Feb 26, 2020
1 parent 5d2483f commit 94b0d6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2525,6 +2525,9 @@ proc staticRead*(filename: string): string {.magic: "Slurp".}
## Compile-time `readFile <io.html#readFile,string>`_ proc for easy
## `resource`:idx: embedding:
##
## The maximum file size limit that ``staticRead`` and ``slurp`` can read is
## near or equal to the *free* memory of the device you are using to compile.
##
## .. code-block:: Nim
## const myResource = staticRead"mydatafile.bin"
##
Expand Down

0 comments on commit 94b0d6b

Please sign in to comment.