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

@ -33,6 +33,9 @@ proc openDefaultBrowser*(url: string) =
## used to determine the default browser to use.
##
## This proc doesn't raise an exception on error, beware.
##
## .. code-block:: nim
## block: openDefaultBrowser("https://nim-lang.org")
when defined(windows):
var o = newWideCString(osOpenCmd)
var u = newWideCString(url)