Clarify private module functions/variables.
This commit is contained in:
parent
fed65676a2
commit
c7de72aba2
@ -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
|
||||
-----------
|
||||
|
Loading…
Reference in New Issue
Block a user