docs: update the module import example (#6439)

pull/6354/head
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
1 changed files with 2 additions and 2 deletions

View File

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