From fe249ab0c339b464514922ac1420790844b82c60 Mon Sep 17 00:00:00 2001 From: Enzo Baldisserri Date: Fri, 17 Apr 2020 21:41:54 +0200 Subject: [PATCH] vtest: remove `pub` before main --- cmd/tools/vtest.v | 10 ++++------ examples/database/mysql.v | 2 +- examples/pico/pico.v | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/cmd/tools/vtest.v b/cmd/tools/vtest.v index 33a41597ef..6af115aa9d 100644 --- a/cmd/tools/vtest.v +++ b/cmd/tools/vtest.v @@ -1,12 +1,10 @@ module main -import ( - os - os.cmdline - testing -) +import os +import os.cmdline +import testing -pub fn main() { +fn main() { args := os.args if args.last() == 'test' { println('Usage:') diff --git a/examples/database/mysql.v b/examples/database/mysql.v index bb1d7ce84b..645005b250 100644 --- a/examples/database/mysql.v +++ b/examples/database/mysql.v @@ -1,6 +1,6 @@ // import mysql -// pub fn main() { +// fn main() { // conn := mysql.connect('localhost', 'root', '', 'mysql') // res := conn.query('show tables') // for row in res.rows() { diff --git a/examples/pico/pico.v b/examples/pico/pico.v index a563488bb2..85ba47efef 100644 --- a/examples/pico/pico.v +++ b/examples/pico/pico.v @@ -36,6 +36,6 @@ pub fn callback(req picohttpparser.Request, res mut picohttpparser.Response) { } } -pub fn main() { +fn main() { picoev.new(8088, &callback).serve() }