From b299ae95e5dabd1b9ff96b86030def31b812ce3c Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Thu, 18 May 2023 10:14:53 +0300 Subject: [PATCH] autobahn,wsutil: fix typos in comments and logs --- Makefile | 2 +- autobahn/main.go | 2 +- wsutil/handler_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8f72739..6d89f78 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ test: go test -coverprofile=ws.coverage . go test -coverprofile=wsutil.coverage ./wsutil go test -coverprofile=wsfalte.coverage ./wsflate - # No statemenets to cover in ./tests (there are only tests). + # No statements to cover in ./tests (there are only tests). go test ./tests cover: bin/gocovmerge test autobahn diff --git a/autobahn/main.go b/autobahn/main.go index b19ab3c..cf92dc0 100644 --- a/autobahn/main.go +++ b/autobahn/main.go @@ -237,7 +237,7 @@ func min(a, b int) int { func handlerIndex() func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) { if *verbose { - log.Printf("reqeust to %s", r.URL) + log.Printf("request to %s", r.URL) } if r.URL.Path != "/" { w.WriteHeader(http.StatusNotFound) diff --git a/wsutil/handler_test.go b/wsutil/handler_test.go index 2e653cd..c129742 100644 --- a/wsutil/handler_test.go +++ b/wsutil/handler_test.go @@ -45,7 +45,7 @@ func TestControlHandler(t *testing.T) { }, { name: "pong", - in: ws.NewPongFrame([]byte("catched")), + in: ws.NewPongFrame([]byte("caught")), noOut: true, }, {