]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/httptest: fix incorrectly-named ResponseRecorder example
authorAndrew Gerrand <adg@golang.org>
Mon, 29 Apr 2013 15:34:47 +0000 (17:34 +0200)
committerAndrew Gerrand <adg@golang.org>
Mon, 29 Apr 2013 15:34:47 +0000 (17:34 +0200)
R=golang-dev, minux.ma, r
CC=golang-dev
https://golang.org/cl/8545047

src/pkg/net/http/httptest/example_test.go

index 239470d97158e9155098161964a02e17fde1fa89..42a0ec953b27e22c329a6cd55a4dd14a3b188182 100644 (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)
        }