1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:48:13 -07:00

net/http/httptest: fix incorrectly-named ResponseRecorder example

R=golang-dev, minux.ma, r
CC=golang-dev
https://golang.org/cl/8545047
This commit is contained in:
Andrew Gerrand 2013-04-29 17:34:47 +02:00
parent e9546a01dc
commit 13721cf688

View File

@ -12,7 +12,7 @@ import (
"net/http/httptest"
)
func ExampleRecorder() {
func ExampleResponseRecorder() {
handler := func(w http.ResponseWriter, r *http.Request) {
http.Error(w, "something failed", http.StatusInternalServerError)
}