mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
docs: update the module import example (#6439)
This commit is contained in:
parent
0f1c484ad1
commit
f159163856
@ -1386,9 +1386,9 @@ To create a new module, create a directory with your module's name and
|
||||
```v
|
||||
cd ~/code/modules
|
||||
mkdir mymodule
|
||||
vim mymodule/mymodule.v
|
||||
vim mymodule/myfile.v
|
||||
|
||||
// mymodule.v
|
||||
// myfile.v
|
||||
module mymodule
|
||||
|
||||
// To export a function we have to use `pub`
|
||||
|
Loading…
Reference in New Issue
Block a user