Skip to content

Commit

Permalink
Clarify month docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Mar 12, 2024
1 parent 3611e63 commit 2e3e8b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/getMonth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { toDate } from "../toDate/index.js";
*
* @param date - The given date
*
* @returns The month
* @returns The month index (0-11)
*
* @example
* // Which month is 29 February 2012?
Expand Down
2 changes: 1 addition & 1 deletion src/setMonth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { toDate } from "../toDate/index.js";
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The date to be changed
* @param month - The month of the new date
* @param month - The month index to set (0-11)
*
* @returns The new date with the month set
*
Expand Down

0 comments on commit 2e3e8b6

Please sign in to comment.