Fix typos and grammar issues in comments

This commit is contained in:
Oleksandr Redko 2021-10-28 13:57:36 +03:00
parent d7df856439
commit 77aa442a43
6 changed files with 29 additions and 29 deletions

View file

@ -44,7 +44,7 @@ func (p Params) AddNonZeroFloat(key string, value float64) {
}
}
// AddInterface adds an interface if it is not nill and can be JSON marshalled.
// AddInterface adds an interface if it is not nil and can be JSON marshalled.
func (p Params) AddInterface(key string, value interface{}) error {
if value == nil || (reflect.ValueOf(value).Kind() == reflect.Ptr && reflect.ValueOf(value).IsNil()) {
return nil