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 <rs@rhapsodyk.net>
  • Loading branch information
GRbit and rs committed 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
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.