diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2016-09-17 17:25:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-17 17:25:49 +0200 |
commit | 18b64f1dcfe3364ff2c6fef021de7409a6f858de (patch) | |
tree | e49a7b912c017f978adaba960d8b4a3e4fb13e58 /lib | |
parent | dfe416eaadc05a7262cfae16237d1a5d03049f14 (diff) | |
parent | a9e796e00123150fbb7e4b951670fda2e41161ed (diff) | |
download | Nim-18b64f1dcfe3364ff2c6fef021de7409a6f858de.tar.gz |
Merge pull request #4788 from rudis/devel-doc
Misc documentation fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/system.nim b/lib/system.nim index 16258988f..31d14d4bf 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1521,7 +1521,7 @@ type # these work for most platforms: ## This is the same as the type ``double`` in *C*. clongdouble* {.importc: "long double", nodecl.} = BiggestFloat ## This is the same as the type ``long double`` in *C*. - ## This C type is not supported by Nim's code generator + ## This C type is not supported by Nim's code generator. cuchar* {.importc: "unsigned char", nodecl.} = char ## This is the same as the type ``unsigned char`` in *C*. @@ -2653,12 +2653,11 @@ when not defined(JS): #and not defined(nimscript): when defined(nimscript): proc readFile*(filename: string): string {.tags: [ReadIOEffect], benign.} - ## Opens a file named `filename` for reading. - ## - ## Then calls `readAll <#readAll>`_ and closes the file afterwards. - ## Returns the string. Raises an IO exception in case of an error. If - ## you need to call this inside a compile time macro you can use - ## `staticRead <#staticRead>`_. + ## Opens a file named `filename` for reading, calls `readAll + ## <#readAll>`_ and closes the file afterwards. Returns the string. + ## Raises an IO exception in case of an error. If # you need to call + ## this inside a compile time macro you can use `staticRead + ## <#staticRead>`_. proc writeFile*(filename, content: string) {.tags: [WriteIOEffect], benign.} ## Opens a file named `filename` for writing. Then writes the |