diff --git a/doc/src/language/modules/export.md b/doc/src/language/modules/export.md index f05e008c..2152dc74 100644 --- a/doc/src/language/modules/export.md +++ b/doc/src/language/modules/export.md @@ -43,6 +43,9 @@ export x as answer; // the variable 'x' is exported under the alias 'answer' } ``` +[`private`] variables are used to initialize the module. +They cannot be used apart from this. + Functions --------- @@ -59,6 +62,9 @@ fn inc(x) { x + 1 } // script-defined function - default public private fn foo() {} // private function - hidden ``` +[`private`] functions are commonly called to initialize the module. +They cannot be called apart from this. + Sub-Modules -----------