From e747dfd50fc983c2d338369e9e0dbc01a4d77427 Mon Sep 17 00:00:00 2001 From: Tom Leen Date: Sat, 11 Jul 2020 15:20:28 -0400 Subject: [PATCH] doc: fix module init signature (#5809) --- doc/docs.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index fdb7c30d44..013915c980 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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 } ```