mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-01 19:44:44 +00:00
* fix bug1 from #16238 nim doc now works with include prelude * fix for windows * fixup
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
Prelude
|
||||
=======
|
||||
|
||||
This is an include file that simply imports common modules for your convenience:
|
||||
|
||||
.. code-block:: nim
|
||||
include std/prelude
|
||||
|
||||
Same as:
|
||||
|
||||
.. code-block:: nim
|
||||
import std/[os, strutils, times, parseutils, hashes, tables, sets, sequtils, parseopt]
|
||||
|
||||
|
||||
Examples
|
||||
========
|
||||
|
||||
Get the basic most common imports ready to start coding using ``prelude``:
|
||||
|
||||
.. code-block:: nim
|
||||
include std/prelude
|
||||
|
||||
echo now()
|
||||
echo getCurrentDir()
|
||||
echo "Hello $1".format("World")
|
||||
|
||||
|
||||
See also:
|
||||
- `Sugar <sugar.html>`_
|
||||
Reference in New Issue
Block a user