diff --git a/cache/cache.go b/cache/cache.go index 18fde0d9..9b451763 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -37,7 +37,7 @@ import ( // Cache accepts the cache expiration duration. // If the "expiration" input argument is invalid, <=2 seconds, // then expiration is taken by the "cache-control's maxage" header. -// Returns a Handler structure which you can use to customize cache furher. +// Returns a Handler structure which you can use to customize cache further. // // All types of response can be cached, templates, json, text, anything. // diff --git a/configuration.go b/configuration.go index aa43f73a..af003e01 100644 --- a/configuration.go +++ b/configuration.go @@ -257,7 +257,7 @@ var WithoutAutoFireStatusCode = func(app *Application) { app.config.DisableAutoFireStatusCode = true } -// WithPathEscape enanbles the PathEscape setting. +// WithPathEscape enables the PathEscape setting. // // See `Configuration`. var WithPathEscape = func(app *Application) { @@ -271,7 +271,7 @@ var WithOptimizations = func(app *Application) { app.config.EnableOptimizations = true } -// WithFireMethodNotAllowed enanbles the FireMethodNotAllowed setting. +// WithFireMethodNotAllowed enables the FireMethodNotAllowed setting. // // See `Configuration`. var WithFireMethodNotAllowed = func(app *Application) { @@ -736,7 +736,7 @@ type Configuration struct { // the requested path to the registered path // for example, if /home/ path is requested but no handler for this Route found, // then the Router checks if /home handler exists, if yes, - // (permant)redirects the client to the correct path /home. + // (permanent)redirects the client to the correct path /home. // // See `DisablePathCorrectionRedirection` to enable direct handler execution instead of redirection. // @@ -879,7 +879,7 @@ func (c Configuration) GetVHost() string { // DisablePathCorrection corrects and redirects the requested path to the registered path // for example, if /home/ path is requested but no handler for this Route found, // then the Router checks if /home handler exists, if yes, -// (permant)redirects the client to the correct path /home. +// (permanent)redirects the client to the correct path /home. func (c Configuration) GetDisablePathCorrection() bool { return c.DisablePathCorrection } diff --git a/core/router/api_builder.go b/core/router/api_builder.go index fc9debc1..3016a15b 100644 --- a/core/router/api_builder.go +++ b/core/router/api_builder.go @@ -921,7 +921,7 @@ func (api *APIBuilder) Favicon(favPath string, requestPath ...string) *Route { // OnErrorCode registers an error http status code // based on the "statusCode" < 200 || >= 400 (came from `context.StatusCodeNotSuccessful`). -// The handler is being wrapepd by a generic +// The handler is being wrapped by a generic // handler which will try to reset // the body if recorder was enabled // and/or disable the gzip if gzip response recorder diff --git a/go19.go b/go19.go index e46e9bb5..b7582256 100644 --- a/go19.go +++ b/go19.go @@ -9,7 +9,7 @@ import ( ) type ( - // Context is the midle-man server's "object" for the clients. + // Context is the middle-man server's "object" for the clients. // // A New context is being acquired from a sync.Pool on each connection. // The Context is the most important thing on the iris's http flow. diff --git a/iris.go b/iris.go index 3cb71ee7..f6dabda2 100644 --- a/iris.go +++ b/iris.go @@ -515,7 +515,7 @@ var ( // // A shortcut for the `context#IsErrPath`. IsErrPath = context.IsErrPath - // NewProblem retruns a new Problem. + // NewProblem returns a new Problem. // Head over to the `Problem` type godoc for more. // // A shortcut for the `context#NewProblem`.