Skip to content

Commit

Permalink
chore: fix some typos in comment (#2735)
Browse files Browse the repository at this point in the history
Signed-off-by: zhuhaicity <[email protected]>
  • Loading branch information
zhuhaicity authored Jan 12, 2025
1 parent ee3e129 commit ce0b12a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion middleware/rate_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down

0 comments on commit ce0b12a

Please sign in to comment.