diff --git a/docs/source/examples.rst b/docs/source/examples.rst index 5b0b504b3..bf726e029 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -227,9 +227,9 @@ The function returns the date and the name of the holiday - exluding today. (datetime.date(2025, 1, 20), 'Martin Luther King Jr. Day') >>> us_holidays.get_next_holiday(previous=True) # get the previous holiday before today (datetime.date(2025, 1, 1), "New Year's Day") - >>> us_holidays.is_working_day("2025-02-01") # get the next holiday after a specific date + >>> us_holidays.get_next_holiday("2025-02-01") # get the next holiday after a specific date (datetime.date(2025, 2, 17), "Washington's Birthday") - >>> us_holidays.is_working_day("2025-02-01", previous=True) # get the previous holiday before a specific date + >>> us_holidays.get_next_holiday("2025-02-01", previous=True) # get the previous holiday before a specific date (datetime.date(2025, 1, 20), 'Martin Luther King Jr. Day') If no holiday can be found (e.g. because the date would be after the end date /