diff --git a/bind.go b/bind.go index ed7ca3249..5940e15da 100644 --- a/bind.go +++ b/bind.go @@ -269,7 +269,7 @@ func (b *DefaultBinder) bindData(destination interface{}, data map[string][]stri continue } - // we could be dealing with pointer to slice `*[]string` so dereference it. There are wierd OpenAPI generators + // we could be dealing with pointer to slice `*[]string` so dereference it. There are weird OpenAPI generators // that could create struct fields like that. if structFieldKind == reflect.Pointer { structFieldKind = structField.Elem().Kind() diff --git a/ip.go b/ip.go index 393a6c2d3..6ed1d118a 100644 --- a/ip.go +++ b/ip.go @@ -24,7 +24,7 @@ To retrieve IP address reliably/securely, you must let your application be aware In Echo, this can be done by configuring `Echo#IPExtractor` appropriately. This guides show you why and how. -> Note: if you dont' set `Echo#IPExtractor` explicitly, Echo fallback to legacy behavior, which is not a good choice. +> Note: if you don't set `Echo#IPExtractor` explicitly, Echo fallback to legacy behavior, which is not a good choice. Let's start from two questions to know the right direction: diff --git a/middleware/rate_limiter.go b/middleware/rate_limiter.go index d4724fd2a..70b89b0e2 100644 --- a/middleware/rate_limiter.go +++ b/middleware/rate_limiter.go @@ -191,7 +191,7 @@ NewRateLimiterMemoryStoreWithConfig returns an instance of RateLimiterMemoryStor with the provided configuration. Rate must be provided. Burst will be set to the rounded down value of the configured rate if not provided or set to 0. -The build-in memory store is usually capable for modest loads. For higher loads other +The built-in memory store is usually capable for modest loads. For higher loads other store implementations should be considered. Characteristics: diff --git a/router_test.go b/router_test.go index dca0d47bc..203d014ec 100644 --- a/router_test.go +++ b/router_test.go @@ -2773,7 +2773,7 @@ func TestRouter_Routes(t *testing.T) { func TestRouter_addEmptyPathToSlashReverse(t *testing.T) { e := New() r := e.router - r.add(http.MethodGet, "", "empty", handlerFunc) // emtpy path is normalized to `/` + r.add(http.MethodGet, "", "empty", handlerFunc) // empty path is normalized to `/` assert.Equal(t, "/", r.Reverse("empty")) }