From 5c318dfce63236b3091eb533a8f41586f06840a5 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Fri, 17 Feb 2017 10:49:28 +0200 Subject: [PATCH] misspell fix Former-commit-id: a6e81fd308a1f741c16d24793778d4046a172b35 --- HISTORY.md | 4 ++-- adaptors/httprouter/httprouter_test.go | 8 ++++---- adaptors/websocket/_examples/websocket/main.go | 2 +- .../websocket/_examples/websocket_connectionlist/main.go | 2 +- .../websocket/_examples/websocket_native_messages/main.go | 2 +- adaptors/websocket/_examples/websocket_secure/main.go | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 80bae639..0f416214 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1016,7 +1016,7 @@ func main() { ctx.Render("client.html", clientPage{"Client Page", ctx.Host()}) }) - // the path which the websocket client should listen/registed to -> + // the path which the websocket client should listen/registered to -> iris.Config.Websocket.Endpoint = "/my_endpoint" // by-default all origins are accepted, you can change this behavior by setting: // iris.Config.Websocket.CheckOrigin @@ -1100,7 +1100,7 @@ func main() { app.Adapt(view.HTML("./templates", ".html")) // select the html engine to serve templates ws := websocket.New(websocket.Config{ - // the path which the websocket client should listen/registed to, + // the path which the websocket client should listen/registered to, Endpoint: "/my_endpoint", // the client-side javascript static file path // which will be served by Iris. diff --git a/adaptors/httprouter/httprouter_test.go b/adaptors/httprouter/httprouter_test.go index d74763cb..5cec08ca 100644 --- a/adaptors/httprouter/httprouter_test.go +++ b/adaptors/httprouter/httprouter_test.go @@ -67,7 +67,7 @@ func TestMuxSimple(t *testing.T) { app := newApp() testRoutes := []testRoute{ - // FOUND - registed + // FOUND - registered {"GET", "/test_get", "/test_get", "", "hello, get!", 200, true, nil, nil}, {"POST", "/test_post", "/test_post", "", "hello, post!", 200, true, nil, nil}, {"PUT", "/test_put", "/test_put", "", "hello, put!", 200, true, nil, nil}, @@ -77,7 +77,7 @@ func TestMuxSimple(t *testing.T) { {"CONNECT", "/test_connect", "/test_connect", "", "hello, connect!", 200, true, nil, nil}, {"PATCH", "/test_patch", "/test_patch", "", "hello, patch!", 200, true, nil, nil}, {"TRACE", "/test_trace", "/test_trace", "", "hello, trace!", 200, true, nil, nil}, - // NOT FOUND - not registed + // NOT FOUND - not registered {"GET", "/test_get_nofound", "/test_get_nofound", "", "Not Found", 404, false, nil, nil}, {"POST", "/test_post_nofound", "/test_post_nofound", "", "Not Found", 404, false, nil, nil}, {"PUT", "/test_put_nofound", "/test_put_nofound", "", "Not Found", 404, false, nil, nil}, @@ -233,7 +233,7 @@ func TestMuxCustomErrors(t *testing.T) { notFoundMessage = "Iris custom message for 404 not found" internalServerMessage = "Iris custom message for 500 internal server error" testRoutesCustomErrors = []testRoute{ - // NOT FOUND CUSTOM ERRORS - not registed + // NOT FOUND CUSTOM ERRORS - not registered {"GET", "/test_get_nofound_custom", "/test_get_nofound_custom", "", notFoundMessage, 404, false, nil, nil}, {"POST", "/test_post_nofound_custom", "/test_post_nofound_custom", "", notFoundMessage, 404, false, nil, nil}, {"PUT", "/test_put_nofound_custom", "/test_put_nofound_custom", "", notFoundMessage, 404, false, nil, nil}, @@ -243,7 +243,7 @@ func TestMuxCustomErrors(t *testing.T) { {"CONNECT", "/test_connect_nofound_custom", "/test_connect_nofound_custom", "", notFoundMessage, 404, false, nil, nil}, {"PATCH", "/test_patch_nofound_custom", "/test_patch_nofound_custom", "", notFoundMessage, 404, false, nil, nil}, {"TRACE", "/test_trace_nofound_custom", "/test_trace_nofound_custom", "", notFoundMessage, 404, false, nil, nil}, - // SERVER INTERNAL ERROR 500 PANIC CUSTOM ERRORS - registed + // SERVER INTERNAL ERROR 500 PANIC CUSTOM ERRORS - registered {"GET", "/test_get_panic_custom", "/test_get_panic_custom", "", internalServerMessage, 500, true, nil, nil}, {"POST", "/test_post_panic_custom", "/test_post_panic_custom", "", internalServerMessage, 500, true, nil, nil}, {"PUT", "/test_put_panic_custom", "/test_put_panic_custom", "", internalServerMessage, 500, true, nil, nil}, diff --git a/adaptors/websocket/_examples/websocket/main.go b/adaptors/websocket/_examples/websocket/main.go index be69bb08..bb00a7d4 100644 --- a/adaptors/websocket/_examples/websocket/main.go +++ b/adaptors/websocket/_examples/websocket/main.go @@ -21,7 +21,7 @@ func main() { app.Adapt(view.HTML("./templates", ".html")) // select the html engine to serve templates ws := websocket.New(websocket.Config{ - // the path which the websocket client should listen/registed to, + // the path which the websocket client should listen/registered to, Endpoint: "/my_endpoint", // the client-side javascript static file path // which will be served by Iris. diff --git a/adaptors/websocket/_examples/websocket_connectionlist/main.go b/adaptors/websocket/_examples/websocket_connectionlist/main.go index 1127a944..7b51b6ec 100644 --- a/adaptors/websocket/_examples/websocket_connectionlist/main.go +++ b/adaptors/websocket/_examples/websocket_connectionlist/main.go @@ -23,7 +23,7 @@ func main() { app.Adapt(view.HTML("./templates", ".html")) // select the html engine to serve templates ws := websocket.New(websocket.Config{ - // the path which the websocket client should listen/registed to, + // the path which the websocket client should listen/registered to, Endpoint: "/my_endpoint", // the client-side javascript static file path // which will be served by Iris. diff --git a/adaptors/websocket/_examples/websocket_native_messages/main.go b/adaptors/websocket/_examples/websocket_native_messages/main.go index 4634e196..0eb6d8e8 100644 --- a/adaptors/websocket/_examples/websocket_native_messages/main.go +++ b/adaptors/websocket/_examples/websocket_native_messages/main.go @@ -29,7 +29,7 @@ func main() { app.Adapt(view.HTML("./templates", ".html")) // select the html engine to serve templates ws := websocket.New(websocket.Config{ - // the path which the websocket client should listen/registed to, + // the path which the websocket client should listen/registered to, Endpoint: "/my_endpoint", // to enable binary messages (useful for protobuf): // BinaryMessages: true, diff --git a/adaptors/websocket/_examples/websocket_secure/main.go b/adaptors/websocket/_examples/websocket_secure/main.go index 7ad3f497..623b765e 100644 --- a/adaptors/websocket/_examples/websocket_secure/main.go +++ b/adaptors/websocket/_examples/websocket_secure/main.go @@ -24,7 +24,7 @@ func main() { app.Adapt(view.HTML("./templates", ".html")) // select the html engine to serve templates ws := websocket.New(websocket.Config{ - // the path which the websocket client should listen/registed to, + // the path which the websocket client should listen/registered to, Endpoint: "/my_endpoint", // the client-side javascript static file path // which will be served by Iris.