]> Cypherpunks repositories - gostls13.git/commit
net/http: fix misplaced defer and example
authorDave Cheney <dave@cheney.net>
Tue, 21 Aug 2012 01:46:07 +0000 (11:46 +1000)
committerDave Cheney <dave@cheney.net>
Tue, 21 Aug 2012 01:46:07 +0000 (11:46 +1000)
commit46c9346d749d159190ed8058625e1bdb3a614989
treec540ce66e71cc25b7bc13af5d2b8cf7536c69a4d
parent2bdc60f8e71aabafccb1c414a7732a265faac3dd
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