Skip to content

Commit

Permalink
Lower case comment
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Oct 29, 2024
1 parent ef7633c commit 41d5a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gen/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (e *encodeGen) structmap(s *Struct) {

// Skip block, if no fields are set.
if nfields > 1 {
e.p.printf("\n// Skip if no fields are to be emitted")
e.p.printf("\n\n// skip if no fields are to be emitted")
e.p.printf("\nif %s != 0 {", fieldNVar)
closeZero = true
}
Expand Down
2 changes: 1 addition & 1 deletion gen/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (m *marshalGen) mapstruct(s *Struct) {

// Skip block, if no fields are set.
if nfields > 1 {
m.p.printf("\n// Skip if no fields are to be emitted")
m.p.printf("\n\n// skip if no fields are to be emitted")
m.p.printf("\nif %s != 0 {", fieldNVar)
closeZero = true
}
Expand Down

0 comments on commit 41d5a7e

Please sign in to comment.