Browse Source

update comment

Sylvrec 4 years ago
parent
commit
7b440ac08f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mysqltojson/sql/mysql.go

+ 2 - 2
mysqltojson/sql/mysql.go

@@ -15,7 +15,7 @@ type SQL struct {
 	err error
 }
 
-/* NewSQL
+/* New
 @parameter server string (ex: myserver.com:3306)
 @parameter login string
 @parameter mdp string
@@ -30,7 +30,7 @@ func New(server, login, mdp, base string) *SQL {
 	return s
 }
 
-// Connect (Use NewMySQL for the connection)
+// Connect (Use New for the connection)
 func Connect(server, login, mdp, base string) (*sql.DB, error) {
 	db, err := sql.Open("mysql", login+":"+mdp+"@tcp("+server+")/"+base)
 	return db, err