Commit f08f1cd2 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net: clarify DialContext's use of its provided context

Fixes #15325

Change-Id: I60137ecf27e236e97734b1730ce29ab23e9fe07f
Reviewed-on: https://go-review.googlesource.com/22509Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 06d639e0
......@@ -284,7 +284,10 @@ func (d *Dialer) Dial(network, address string) (Conn, error) {
// DialContext connects to the address on the named network using
// the provided context.
//
// The provided Context must be non-nil.
// The provided Context must be non-nil. If the context expires before
// the connection is complete, an error is returned. Once successfully
// connected, any expiration of the context will not affect the
// connection.
//
// See func Dial for a description of the network and address
// parameters.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment