Skip to content

Commit

Permalink
Rename context cleaning function
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Poitrey <[email protected]>
  • Loading branch information
GRbit and rs authored Mar 4, 2024
1 parent f4d949c commit 6be9a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (c Context) Any(key string, i interface{}) Context {
}

// EmptyFields removes all the context fields.
func (c Context) EmptyFields() Context {
func (c Context) Reset() Context {
c.l.context = enc.AppendBeginMarker(make([]byte, 0, 500))
return c
}
Expand Down

0 comments on commit 6be9a35

Please sign in to comment.