1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: check (mut f Foo) syntax

This commit is contained in:
yuyi
2020-05-17 19:51:18 +08:00
committed by GitHub
parent b138cadbcb
commit 7f4cf08516
87 changed files with 492 additions and 480 deletions

View File

@ -23,7 +23,7 @@ pub fn new_connection(host, username, password, dbname string) ?Connection {
return Connection{ host, 0, username, password, dbname, 0, instance }
}
pub fn (conn mut Connection) connect() ?bool {
pub fn (mut conn Connection) connect() ?bool {
mut instance := C.mysql_init(0)
if !isnil(conn.conn) {
instance = conn.conn