Skip to content

Commit

Permalink
Merge pull request #6 from enghitalo/fix/update-v-sintax
Browse files Browse the repository at this point in the history
style: fmt project
  • Loading branch information
JalonSolov authored Nov 26, 2023
2 parents faffaba + 3f99412 commit 9ddaf83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encode.v
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ pub fn (mut e Encoder) encode_string_bytes_raw(bs []u8) {

pub fn (mut e Encoder) encode_time(t time.Time) {
// if t.is_zero() {
if t.second == 0 && t.microsecond == 0 {
if t.second == 0 && t.nanosecond == 0 {
e.encode_nil()
return
}
Expand Down

0 comments on commit 9ddaf83

Please sign in to comment.