Skip to content

Commit

Permalink
Fix yearsToDays example (#3652)
Browse files Browse the repository at this point in the history
  • Loading branch information
makstyle119 committed Mar 12, 2024
1 parent 2e3e8b6 commit 59c50f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yearsToDays/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { daysInYear } from "../constants/index.js";
* @example
* // Convert 2 years into days
* const result = yearsToDays(2)
* //=> 24
* //=> 730
*/
export function yearsToDays(years: number): number {
return Math.trunc(years * daysInYear);
Expand Down

0 comments on commit 59c50f9

Please sign in to comment.