Skip to content

Commit 7732db3

Browse files
committed
2
Change-Id: I0d330c14e2a5d16be51cf1260fc5df4fc8eb9cc2
1 parent 5e36755 commit 7732db3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/encoding/json/encode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ import (
100100
// Field int `json:"-,"`
101101
//
102102
// The "omitzero" option specifies that the field should be omitted
103-
// from the encoding if the field has a zero value, according to:
103+
// from the encoding if the field has a zero value, according to rules:
104104
//
105105
// 1) If the field type has an "IsZero() bool" method, that will be used to
106106
// determine whether the value is zero.
@@ -114,7 +114,7 @@ import (
114114
//
115115
// // Field appears in JSON as key "myName" and
116116
// // the field is omitted from the object if its value is zero,
117-
// // as defined above.
117+
// // as determined above.
118118
// Field time.Time `json:"myName,omitzero"`
119119
//
120120
// // Field appears in JSON as key "Field" (the default), but

0 commit comments

Comments
 (0)