From 8f7b5752f80b6414e5debe646e5adea1b06803e2 Mon Sep 17 00:00:00 2001 From: kataras Date: Thu, 24 Aug 2017 15:51:43 +0300 Subject: [PATCH] fix some typos Former-commit-id: 338c7421e2cd49f558cf09d194fe42c4db701be1 --- _examples/hello-world/main.go | 2 +- _examples/mvc/hello-world/main.go | 2 +- _examples/overview/main.go | 2 +- doc.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_examples/hello-world/main.go b/_examples/hello-world/main.go index ea2713bc..ae18a4eb 100644 --- a/_examples/hello-world/main.go +++ b/_examples/hello-world/main.go @@ -26,7 +26,7 @@ func main() { // same as app.Handle("GET", "/ping", [...]) // Method: GET - // Resource: http://context:8080/ping + // Resource: http://localhost:8080/ping app.Get("/ping", func(ctx context.Context) { ctx.WriteString("pong") }) diff --git a/_examples/mvc/hello-world/main.go b/_examples/mvc/hello-world/main.go index e324766d..58d17a0b 100644 --- a/_examples/mvc/hello-world/main.go +++ b/_examples/mvc/hello-world/main.go @@ -67,7 +67,7 @@ type PingController struct { // Get serves // Method: GET -// Resource: http://context:8080/ping +// Resource: http://localhost:8080/ping func (c *PingController) Get() { c.Ctx.WriteString("pong") } diff --git a/_examples/overview/main.go b/_examples/overview/main.go index c310067a..f7e17edd 100644 --- a/_examples/overview/main.go +++ b/_examples/overview/main.go @@ -24,7 +24,7 @@ func main() { // Reload the templates on each request (development mode). app.RegisterView(view.HTML("./views", ".html").Reload(true)) - // Regster custom handler for specific http errors. + // Register custom handler for specific http errors. app.OnErrorCode(iris.StatusInternalServerError, func(ctx context.Context) { // .Values are used to communicate between handlers, middleware. errMessage := ctx.Values().GetString("error") diff --git a/doc.go b/doc.go index c16be3a7..14f9ad2a 100644 --- a/doc.go +++ b/doc.go @@ -71,7 +71,7 @@ Example code: // Reload the templates on each request (development mode). app.RegisterView(iris.HTML("./views", ".html").Reload(true)) - // Regster custom handler for specific http errors. + // Register custom handler for specific http errors. app.OnErrorCode(iris.StatusInternalServerError, func(ctx context.Context) { // .Values are used to communicate between handlers, middleware. errMessage := ctx.Values().GetString("error") @@ -748,7 +748,7 @@ Example Code // Get serves // Method: GET - // Resource: http://context:8080/ping + // Resource: http://localhost:8080/ping func (c *PingController) Get() { c.Ctx.WriteString("pong") }