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:
@ -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
|
||||
|
Reference in New Issue
Block a user