From a25e3fc92b9c92dddf1cf13b693b80a19132934e Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 14:59:15 +0800 Subject: [PATCH 1/7] Fix typo Former-commit-id: c9e6732d3309d621d27acad6b99f2e378bd98e01 --- core/router/api_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 5b8458f5a011b0e8520f186dbb4753d6d7e8df9c Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 17:38:46 +0800 Subject: [PATCH 2/7] Fix typo of `further` Former-commit-id: 8cfbaf60aba132b0ea3c8f9fd3cb8121e1db2a15 --- cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. // From d9ccaae202266fee31161fc1e0ca4d6351eae91b Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 21:09:45 +0800 Subject: [PATCH 3/7] Fix typo of `return` Former-commit-id: 6281134c94db126c5ffecbce2e2d228c6bf28be6 --- iris.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`. From 2c929ade4ebc6b555937948989dcb7779adb79fc Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 21:28:02 +0800 Subject: [PATCH 4/7] Fix typo of `enable` Former-commit-id: 60236fce26699aa4483bcf1defcfddbe5d69b2e0 --- configuration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.go b/configuration.go index aa43f73a..9a1870e0 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) { From 8b4b96b895715ce7260a11fbc44071b002025420 Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 21:35:28 +0800 Subject: [PATCH 5/7] Fix typo of `permanent` Former-commit-id: fa37caaccce3bd03f8b60f135dfbc15e635cd730 --- configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.go b/configuration.go index 9a1870e0..72d5224a 100644 --- a/configuration.go +++ b/configuration.go @@ -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. // From 6a5fe5aee836ce9f511f407a6ec2cc5c496e5fa1 Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 21:41:29 +0800 Subject: [PATCH 6/7] Fix typo of `permanent` Former-commit-id: 4ec356729f77ee54847f0dc7539498aca37943cc --- configuration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.go b/configuration.go index 72d5224a..af003e01 100644 --- a/configuration.go +++ b/configuration.go @@ -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 } From 1b03d25970f24e7901adcff7c133e1f82990ef20 Mon Sep 17 00:00:00 2001 From: Success Go Date: Sun, 12 Jan 2020 21:43:31 +0800 Subject: [PATCH 7/7] Fix typo of `middle` Former-commit-id: e87de205b8848d5b9616c2474bcace95484b502b --- go19.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.