aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-06-02 13:42:55 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2022-06-02 13:42:55 +0100
commitfb8af574c03fd5099dac49cdf6dec8b83df36c48 (patch)
treed0b9a16a89334fcaed05ad793c7358ac7367bc40
parentb491d416c566b4aa287404cbc018b9cb3453e40d (diff)
Update README.md to use the preferred DialContext
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index bb07501..f1fc3e4 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ func TestHTTP(t *testing.T) {
srv := http.Server{}
go srv.Serve(ln)
- client := http.Client{Transport: &http.Transport{Dial: ln.Dial}}
+ client := http.Client{Transport: &http.Transport{DialContext: ln.DialContext}}
// ...
}