mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 13:33:22 +00:00
improve docs for prelude (#16135)
* improve docs for prelude
* better
(cherry picked from commit 0b3a45692c)
This commit is contained in:
@@ -7,16 +7,17 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
# This is an include file that simply imports common modules for your
|
||||
# convenience:
|
||||
#
|
||||
# .. code-block:: nim
|
||||
# include prelude
|
||||
#
|
||||
# Same as:
|
||||
#
|
||||
# .. code-block:: nim
|
||||
# import os, strutils, times, parseutils, parseopt, hashes, tables, sets
|
||||
## This is an include file that simply imports common modules for your
|
||||
## convenience:
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## include prelude
|
||||
##
|
||||
## Same as:
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## import os, strutils, times, parseutils, hashes, tables, sets
|
||||
## when not defined(js): import parseopt
|
||||
|
||||
import os, strutils, times, parseutils, hashes, tables, sets
|
||||
when not defined(js): import parseopt
|
||||
|
||||
Reference in New Issue
Block a user