Skip to content

Commit 871f6bb

Browse files
authored
docs(echoreadall): fix function echoReadAll comment (#881)
As of Go 1.16, ioutil.ReadAll was deprecated.
1 parent dcea2f0 commit 871f6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/autobahn/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func echoCopyFull(w http.ResponseWriter, r *http.Request) {
8484
}
8585

8686
// echoReadAll echoes messages from the client by reading the entire message
87-
// with ioutil.ReadAll.
87+
// with io.ReadAll.
8888
func echoReadAll(w http.ResponseWriter, r *http.Request, writeMessage, writePrepared bool) {
8989
conn, err := upgrader.Upgrade(w, r, nil)
9090
if err != nil {

0 commit comments

Comments
 (0)