File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ type MySQLDriver struct{}
3131// DialFunc is a function which can be used to establish the network connection.
3232// Custom dial functions must be registered with RegisterDial
3333//
34- // Deprecated: users should register a DialContextFunction instead
34+ // Deprecated: users should register a DialContextFunc instead
3535type DialFunc func (addr string ) (net.Conn , error )
3636
37- // DialContextFund is a function which can be used to establish the network connection.
37+ // DialContextFunc is a function which can be used to establish the network connection.
3838// Custom dial functions must be registered with RegisterDialContext
3939type DialContextFunc func (ctx context.Context , addr string ) (net.Conn , error )
4040
4444)
4545
4646// RegisterDialContext registers a custom dial function. It can then be used by the
47- // network address ` mynet(addr)` , where ` mynet` is the registered new network.
47+ // network address mynet(addr), where mynet is the registered new network.
4848// The current context for the connection and its address is passed to the dial function.
4949func RegisterDialContext (net string , dial DialContextFunc ) {
5050 dialsLock .Lock ()
You can’t perform that action at this time.
0 commit comments