Skip to content

Commit ce0b12a

Browse files
authored
chore: fix some typos in comment (#2735)
Signed-off-by: zhuhaicity <[email protected]>
1 parent ee3e129 commit ce0b12a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (b *DefaultBinder) bindData(destination interface{}, data map[string][]stri
269269
continue
270270
}
271271

272-
// we could be dealing with pointer to slice `*[]string` so dereference it. There are wierd OpenAPI generators
272+
// we could be dealing with pointer to slice `*[]string` so dereference it. There are weird OpenAPI generators
273273
// that could create struct fields like that.
274274
if structFieldKind == reflect.Pointer {
275275
structFieldKind = structField.Elem().Kind()

ip.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To retrieve IP address reliably/securely, you must let your application be aware
2424
In Echo, this can be done by configuring `Echo#IPExtractor` appropriately.
2525
This guides show you why and how.
2626
27-
> Note: if you dont' set `Echo#IPExtractor` explicitly, Echo fallback to legacy behavior, which is not a good choice.
27+
> Note: if you don't set `Echo#IPExtractor` explicitly, Echo fallback to legacy behavior, which is not a good choice.
2828
2929
Let's start from two questions to know the right direction:
3030

middleware/rate_limiter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ NewRateLimiterMemoryStoreWithConfig returns an instance of RateLimiterMemoryStor
191191
with the provided configuration. Rate must be provided. Burst will be set to the rounded down value of
192192
the configured rate if not provided or set to 0.
193193
194-
The build-in memory store is usually capable for modest loads. For higher loads other
194+
The built-in memory store is usually capable for modest loads. For higher loads other
195195
store implementations should be considered.
196196
197197
Characteristics:

router_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2773,7 +2773,7 @@ func TestRouter_Routes(t *testing.T) {
27732773
func TestRouter_addEmptyPathToSlashReverse(t *testing.T) {
27742774
e := New()
27752775
r := e.router
2776-
r.add(http.MethodGet, "", "empty", handlerFunc) // emtpy path is normalized to `/`
2776+
r.add(http.MethodGet, "", "empty", handlerFunc) // empty path is normalized to `/`
27772777

27782778
assert.Equal(t, "/", r.Reverse("empty"))
27792779
}

0 commit comments

Comments
 (0)