docs: update the module import example (#6439)
parent
0f1c484ad1
commit
f159163856
|
@ -1386,9 +1386,9 @@ To create a new module, create a directory with your module's name and
|
||||||
```v
|
```v
|
||||||
cd ~/code/modules
|
cd ~/code/modules
|
||||||
mkdir mymodule
|
mkdir mymodule
|
||||||
vim mymodule/mymodule.v
|
vim mymodule/myfile.v
|
||||||
|
|
||||||
// mymodule.v
|
// myfile.v
|
||||||
module mymodule
|
module mymodule
|
||||||
|
|
||||||
// To export a function we have to use `pub`
|
// To export a function we have to use `pub`
|
||||||
|
|
Loading…
Reference in New Issue