doc: fix module init signature (#5809)

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

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:
```v
fn init() int {
fn init() {
// your setup code here ...
return 1
}
```