Skip to content

Commit

Permalink
fix typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk committed Nov 4, 2024
1 parent 96f0bf6 commit b75643b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function getCalendar(
return calendarCache[cacheKey]
}

// Get day of the week of the first day of month, e.gbn j. => 3
// Get day of the week of the first day of month, e.g. => 3
// Add 7 days 7 to make sure it's not negative when subtracting weekStartsOn and wraps around
const firstDay = (7 + getDay(startOfMonth(month)) - weekStartsOn) % 7
const lastMonth = getMonth(
Expand Down

0 comments on commit b75643b

Please sign in to comment.