Add Documentation (#13811)

* Add more Docs and runnableExamples
This commit is contained in:
Juan Carlos 2020-03-31 10:47:57 -03:00 • committed by GitHub
commit 42d2c3088e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 135 additions and 19 deletions

View file

@ -49,6 +49,9 @@ when defined(haiku):
proc countProcessors*(): int {.rtl, extern: "ncpi$1".} =
## returns the number of the processors/cores the machine has.
## Returns 0 if it cannot be detected.
##
## .. code-block:: nim
## block: doAssert countProcessors() >= 0
when defined(windows):
type
SYSTEM_INFO {.final, pure.} = object