Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsMeSamey committed Nov 22, 2024
1 parent 254b9c6 commit 0b6b035
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type StructValidator interface {

// Bind struct
type Bind struct {
ctx Ctx
ctx Ctx
dontHandleErrs bool
}

Expand All @@ -31,7 +31,7 @@ func (b *Bind) WithoutAutoHandling() *Bind {
return b
}

// If you want to handle binder errors automatically, you can use `WithAutoHandling`.
// If you want to handle binder errors automatically, you can use `WithAutoHandling`.
// If there's an error, it will return the error and set HTTP status to `400 Bad Request`.
// You must still return on error explicitly
func (b *Bind) WithAutoHandling() *Bind {
Expand Down
2 changes: 1 addition & 1 deletion ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ func (c *DefaultCtx) IsFromLocal() bool {
func (c *DefaultCtx) Bind() *Bind {
if c.bind == nil {
c.bind = &Bind{
ctx : c,
ctx: c,
dontHandleErrs: true,
}
}
Expand Down

0 comments on commit 0b6b035

Please sign in to comment.