Skip to content

Commit

Permalink
fix(docs): incorrect function matcher example (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntanasMisiunas committed Sep 7, 2022
1 parent abcf296 commit 72e4c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-day-picker/src/types/Matchers.ts
Expand Up @@ -42,7 +42,7 @@
*
* // will match when the function return true
* const functionMatcher: Matcher = (day: Date) => {
* return (new Date()).getMonth() === 2 // match when month is March
* return day.getMonth() === 2 // match when month is March
* };
* ```
*
Expand Down

0 comments on commit 72e4c2c

Please sign in to comment.