1
0
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:
Sanath Kumar U 2020-09-21 20:01:11 +05:30 committed by GitHub
parent 0f1c484ad1
commit f159163856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`