1
0
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:
Tom Leen 2020-07-11 15:20:28 -04:00 committed by GitHub
parent 25c397f921
commit e747dfd50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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