mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: fix module init signature (#5809)
This commit is contained in:
parent
25c397f921
commit
e747dfd50f
@ -1199,9 +1199,8 @@ setup/initialization code when imported (perhaps you want to call
|
|||||||
some C library functions), write a module `init` function inside the module:
|
some C library functions), write a module `init` function inside the module:
|
||||||
|
|
||||||
```v
|
```v
|
||||||
fn init() int {
|
fn init() {
|
||||||
// your setup code here ...
|
// your setup code here ...
|
||||||
return 1
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user