Commit 2a6b4e12 authored by Christoph Hack's avatar Christoph Hack Committed by Brad Fitzpatrick

net/http: the documentation should call NewRequest with the right signature.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5554063
parent a99e35b6
......@@ -34,7 +34,8 @@ settings, create a Client:
resp, err := client.Get("http://example.com")
// ...
req := http.NewRequest("GET", "http://example.com", nil)
req, err := http.NewRequest("GET", "http://example.com", nil)
// ...
req.Header.Add("If-None-Match", `W/"wyzzy"`)
resp, err := client.Do(req)
// ...
......
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