[#794] fixed comment typos

This commit is contained in:
Jan Lauber
2022-10-17 19:17:44 +02:00
committed by GitHub
parent 6385c5e646
commit 9cbb2e750e
11 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func (d DateTime) IsZero() bool {
return d.Time().IsZero()
}
// String serializes the current DateTime instance into a formated
// String serializes the current DateTime instance into a formatted
// UTC date string.
//
// The zero value is serialized to an empty string.
+1 -1
View File
@@ -13,7 +13,7 @@ type JsonArray []any
func (m JsonArray) MarshalJSON() ([]byte, error) {
type alias JsonArray // prevent recursion
// inialize an empty map to ensure that `[]` is returned as json
// initialize an empty map to ensure that `[]` is returned as json
if m == nil {
m = JsonArray{}
}
+1 -1
View File
@@ -13,7 +13,7 @@ type JsonMap map[string]any
func (m JsonMap) MarshalJSON() ([]byte, error) {
type alias JsonMap // prevent recursion
// inialize an empty map to ensure that `{}` is returned as json
// initialize an empty map to ensure that `{}` is returned as json
if m == nil {
m = JsonMap{}
}