mirror of
https://github.com/golang/go
synced 2024-11-22 14:24:45 -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:
parent
e9546a01dc
commit
13721cf688
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user