Skip to content

Commit

Permalink
docs(echoreadall): fix function echoReadAll comment (#881)
Browse files Browse the repository at this point in the history
As of Go 1.16, ioutil.ReadAll was deprecated.
  • Loading branch information
XdpCs authored Jan 18, 2024
1 parent dcea2f0 commit 871f6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/autobahn/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func echoCopyFull(w http.ResponseWriter, r *http.Request) {
}

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

0 comments on commit 871f6bb

Please sign in to comment.