Skip to content

Commit

Permalink
docs: fix grammar in comment (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
Psykar authored Apr 23, 2021
1 parent cc31926 commit 7417229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ function makeTimestampMethods(options: Options, longs: ReturnType<typeof makeLon
toNumberCode = 'Number(t.seconds)';
// Must discard the fractional piece here
// Otherwise the fraction ends up on the seconds when parsed as a Long
// (note this but would only occurs when the string is > 8 characters)
// (note this only occurs when the string is > 8 characters)
seconds = 'Math.trunc(date.getTime() / 1_000).toString()';
}

Expand Down

0 comments on commit 7417229

Please sign in to comment.