Skip to content

Commit d58236e

Browse files
committed
connector: fix typos
1 parent 32aa72b commit d58236e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver.go

+3-3
Original file line numberDiff line numberDiff 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
3535
type 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
3939
type DialContextFunc func(ctx context.Context, addr string) (net.Conn, error)
4040

@@ -44,7 +44,7 @@ var (
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.
4949
func RegisterDialContext(net string, dial DialContextFunc) {
5050
dialsLock.Lock()

0 commit comments

Comments
 (0)