update docs

This commit is contained in:
Gregory Roseberry 2014-08-29 11:12:48 +09:00
parent 8ba2f90d14
commit 064b38ec63

View file

@ -71,7 +71,7 @@ func (s String) Pointer() *string {
return &s.String return &s.String
} }
// IsZero returns true for null strings, for future omitempty support. (Go 1.4?) // IsZero returns true for null or empty strings, for future omitempty support. (Go 1.4?)
func (s String) IsZero() bool { func (s String) IsZero() bool {
return !s.Valid || s.String == "" return !s.Valid || s.String == ""
} }