mention correct usage of export in the manual, fixes #6227 [ci skip]
This commit is contained in:
parent
84d10f7d8a
commit
27364ece14
1 changed files with 21 additions and 14 deletions
|
|
@ -6653,6 +6653,13 @@ modules don't need to import a module's dependencies:
|
|||
When the exported symbol is another module, all of its definitions will
|
||||
be forwarded. You can use an ``except`` list to exclude some of the symbols.
|
||||
|
||||
Notice that when exporting, you need to specify only the module name:
|
||||
|
||||
.. code-block:: nim
|
||||
import foo/bar/baz
|
||||
export baz
|
||||
|
||||
|
||||
|
||||
Scope rules
|
||||
-----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue