]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] net/http: fix misplaced defer and example
authorDave Cheney <dave@cheney.net>
Fri, 21 Sep 2012 19:54:42 +0000 (05:54 +1000)
committerDave Cheney <dave@cheney.net>
Fri, 21 Sep 2012 19:54:42 +0000 (05:54 +1000)
commite4c8a2841c4fb7dfa9492846de6c9fb34b93800d
tree0f786466e239f8116c7218b5d7895f361b09ce16
parent686eac5fddc1079fd7b1204d7838e7c0592dd5a6
[release-branch.go1] net/http: fix misplaced defer and example

««« backport 989f373141cc
net/http: fix misplaced defer and example

Moves the defer (again).

Also, correct the example documentation to match.

R=r, robert.hencke, iant, dsymonds, bradfitz
CC=golang-dev
https://golang.org/cl/6458158

»»»
src/pkg/net/http/example_test.go
src/pkg/net/http/transport_test.go